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 theappConfig.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 theCOOKIE_GROUPS
:
web/lib/cookies/types.ts
2. Create or modify the Component
Modify your chosen component inweb/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 inweb/lib/analytics/
:
web/lib/analytics/social-media.tsx
4. Update appConfig
Include the new service in the services
:
web/appConfig.tsx