Integrations

Databuddy

Last updated October 31, 2025

The Databuddy script automatically respects consent preferences by toggling tracking on and off based on the user's consent state.

Integrate with c15t

How c15t loads it

  • Category: measurement (Analytics)
  • Loads when: alwaysLoad — runs on page start regardless of consent state
  • On consent change: c15t toggles window.databuddy.options.disabled so tracking turns on or off without removing the script

Configure the integration

The Databuddy manifest expects explicit initial config objects for the granted and denied consent states:

Tracking events in your app

Databuddy is alwaysLoad: true, so the script is in the DOM from page start regardless of consent. window.databuddy is therefore always defined and calls to track, screenView, or setGlobalProperties are safe to make at any time — when measurement consent is denied, c15t flips window.databuddy.options.disabled = true so the SDK becomes a no-op until consent is granted again.

You do not need to guard these calls with useConsentManager().has('measurement'), but doing so does no harm if you prefer the symmetry with other vendors.

Consent and privacy

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.

Types

DatabuddyConsentOptions

Loading…

Script

Loading…