Getting Started
When users visit your community, they may need to provide consent for different types of cookies:
- Essential: Required for basic functionality (always allowed)
- Analytics: Used for tracking and improving user experience
- Marketing: Used for advertising and personalized content
Bettermode provides two core components for cookie consent management:
- Cookie Manager: Centralized consent storage and management system
- Script Manager: Automated script loading based on user consent preferences
These components work together to ensure compliance with privacy regulations such as GDPR, CCPA, and similar data protection laws.
System Architecture
To function properly, the cookie consent system requires Bettermode's Cookie Consent Management Integration app to be installed from the app store.
Consent Flow
The system follows a structured consent management flow:
-
Consent Collection: The cookie consent app presents cookie preferences to users and collects their consent choices for each cookie category
-
Consent Storage: The cookie consent app calls the Cookie Manager's
setCookieConsent()
method to store preferences centrally -
Change Notification: The Cookie Manager emits
onCookieConsentChange
events when preferences are updated, notifying all system components -
Script Management: The Script Manager automatically loads or unloads registered scripts based on current consent preferences
To build use a custom consent management platform instead of Bettermode's integration, contact your customer success manager.
Next Steps
- Cookie Manager: Learn about consent data structures and APIs
- Register Scripts: Understand how to register and manage scripts that require consent