Cookies
This guide explains how to add new services to the cookie banner in the LaunchIt application. The process involves defining a new cookie group, creating a component for the service, and ensuring that the service respects user consent.
Steps to Add a New Service
LaunchIt uses a cookie banner to manage user consent for tracking services. Only if a user consents to a service, the corresponding tracking script is loaded.
You can disable the complete behavior in the appConfig.tsx
file. However, if you want to add a new service, follow these steps:
1. Choose the Cookie Group
Choose an existing group or add a new entry to the COOKIE_GROUPS
:
2. Create or modify the Component
Modify your chosen component in web/components/cookies/groups/
or create the new one.
3. Implement the Service Logic
Create the service initialization and shutdown logic in web/lib/analytics/
:
4. Update appConfig
Include the new service in the services
:
5. Set Environment Variables
Ensure that any necessary environment variables are set, such as API keys for the new service.