Databuddy
Databuddy is a privacy-focused analytics platform that helps you understand user behavior and track events. It supports cookieless tracking and manages consent automatically through c15t's consent state synchronization.
The Databuddy script automatically respects consent preferences by toggling tracking on and off based on the user's consent state.
Script Implementation
Adding the Databuddy script to c15t
Using Databuddy in your application
Once initialized, Databuddy is available globally via window.databuddy or window.db:
How Consent Management Works
The Databuddy integration automatically handles consent management:
- Before Script Load: Sets
window.databuddyConfig.disabledbased on initial consent state - On Consent Grant: Enables tracking by setting
window.databuddy.options.disabled = false - On Consent Revoke: Disables tracking by setting
window.databuddy.options.disabled = true
This ensures that no tracking occurs without user consent, keeping your analytics privacy-compliant.
Configuration Options
The options parameter allows you to customize Databuddy's behavior:
Types
DatabuddyConsentOptions
Property
Types
Script
Property
Types