Skip to main content
Every player has a consent level, and it decides what Audience collects about them. You ask the player and set the level: the SDKs have no consent prompt of their own.

The three levels

Every SDK starts at none. Until you raise the level, nothing reaches Audience.

Change a player’s level

Call this when the player answers your prompt or changes their mind:
The change applies straight away. Lowering the level stops anything the new level doesn’t allow. Events already sent keep the level they were sent under. With the HTTP API, you apply the level yourself and record it with PUT /v1/audience/tracking-consent. See Track with the HTTP API.

Browser privacy signals

If the player’s browser sends a Global Privacy Control or Do Not Track signal, the Web SDK stays at none, whatever level you set. The tracking pixel can read consent from your site’s consent manager instead of you setting it. Set consentMode to auto and leave out consent:
The pixel starts at none, then reads Google Consent Mode v2 first and IAB TCF v2 second: The pixel keeps listening, so it follows the player when they change their cookie choices. If it finds no consent manager within about 2.5 seconds, it stays at none. With the Web SDK, read your consent manager yourself and call setConsent with the matching level.