Databuddy
October 31, 2025
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
Loading…
Script
Loading…