Skip to content
Back to Documentation

COKIQ docs

Consent Mode settings reference

Every Consent Mode setting COKIQ sends, explained with Google's own wording, and how each COKIQ banner category maps to Google consent types.

Best for

Developers and marketers who want to know exactly what COKIQ sends to Google tags.

Consent types (Google's descriptions)

Descriptions below follow Google's consent mode reference. COKIQ sends all of them in the default command and in every update.

ad_storage (COKIQ: Marketing)

Enables storage, such as cookies, related to advertising.

ad_user_data (COKIQ: Marketing)

Sets consent for sending user data related to advertising to Google.

ad_personalization (COKIQ: Marketing)

Sets consent for personalized advertising.

analytics_storage (COKIQ: Analytics)

Enables storage, such as cookies, related to analytics, for example, visit duration.

functionality_storage and personalization_storage (COKIQ: Preferences)

Storage that supports the functionality of the website, for example language settings, and storage related to personalization, for example video recommendations.

security_storage (always granted)

Storage related to security such as authentication functionality, fraud prevention, and other user protection.

Setup steps

Step 1

Default command

Before any Google tag: all types denied except security_storage, with wait_for_update 500 (milliseconds Google tags wait for an update). With the regional setting, a granted default for all regions plus a denied default for the EEA, UK and Switzerland.

Step 2

ads_data_redaction = true

Google: when ad_storage is denied, ad click identifiers sent in network requests by Google Ads and Floodlight tags will be redacted.

Step 3

url_passthrough = true

Google: passes information about ad clicks and client IDs through URL parameters across pages, to improve measurement when cookies are denied.

Step 4

Update command

After every Accept, Reject or Save, COKIQ sends gtag("consent", "update", ...) with the mapped values and pushes the cokiq_consent_update event to the dataLayer.

Step 5

Developer ID

COKIQ sets its Google developer ID with gtag("set", "developer_id.<id>", true) after the page loads, once Google has issued it.

Implementation checklist

  • Default before the first Google tag
  • Four required types present in default and update
  • Mapping: Marketing -> ad_*, Analytics -> analytics_storage, Preferences -> functionality/personalization_storage

FAQ

Can I change the mapping?

The mapping follows the banner categories. Contact support@cokiq.com if you need a different mapping for a site.

Is Consent Mode a legal requirement?

Consent Mode is a Google feature that passes the visitor's choice to Google tags. It is not designed to meet any particular law on its own.