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

Info

See the integration overview for how to pass scripts to your framework (JavaScript, React, or Next.js).

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 Databuddy manifest expects explicit initial config objects for the granted and denied consent states:

Types

DatabuddyConsentOptions

Loading…

Script

Loading…