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:

The Databuddy integration automatically handles consent management:

  1. Before Script Load: Sets window.databuddyConfig.disabled based on initial consent state
  2. On Consent Grant: Enables tracking by setting window.databuddy.options.disabled = false
  3. 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…