Skip to main content

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: Choose an existing group or add a new entry to the COOKIE_GROUPS:
web/lib/cookies/types.ts

2. Create or modify the Component

Modify your chosen component in web/components/cookies/groups/ or create the new one.
web/components/cookies/groups/socialMediaTracking.tsx

3. Implement the Service Logic

Create the service initialization and shutdown logic in web/lib/analytics/:
web/lib/analytics/social-media.tsx

4. Update appConfig

Include the new service in the services:
web/appConfig.tsx

5. Set Environment Variables

Ensure that any necessary environment variables are set, such as API keys for the new service.