Skip to documentation content
CookieBeam

GPP for US privacy signals

Configure GPP sections and category mappings, then verify the emitted API and string.

Last updated:

CookieBeam can expose a window.__gpp API and encode configured US privacy fields. The runtime installs an early stub, replaces it with the full API, and replays queued calls.

Select sections

The dashboard stores numeric section IDs and separate approach controls:

  • State-specific uses Sections 8–23. For a US visitor, the runtime includes only the enabled section matching the visitor's state.
  • National uses Section 7 only when the organization is marked as an MSPA signatory and Section 7 is present in enabledSections. Switching to National in the dashboard adds Section 7, and saving a National configuration keeps it enabled.
  • Switching back to State-specific keeps your state selection. If no state section is enabled at that point, the dashboard re-enables Sections 8–23.
  • Enable __uspapi adds legacy Section 6 for US visitors.
  • Section 5 (Canadian TCF) is not available yet: it needs CookieBeam's own IAB Canada CMP registration, which is separate from the IAB Europe one. The runtime never includes Section 5 until that identity exists, and the setting is not offered in the dashboard before then.

Missing geolocation produces no applicable section. Enabling a state section does not place every enabled state into every visitor's string.

Map US choices to GPP fields

The US opt-out panel stores three choices independently: sale or sharing, targeted advertising, and sensitive data. The GPP mapper resolves each of the three opt-out fields in this order:

  1. If the visitor made a deliberate, right-specific opt-in through the US opt-out panel (they turned that right ON), that choice wins — even over a GPC signal. This prevents the GPP string from saying "opted out" while the runtime runs the tags.
  2. A Global Privacy Control signal reports opted out for any right the visitor hasn't explicitly opted into.
  3. The visitor's own opt-out choice in the US opt-out panel. Sale and Sharing both follow the combined sale or sharing choice, and Targeted Advertising follows its own choice. This overrides any mapping.
  4. Only for a right the visitor never chose in the panel (for example a record saved before the panel existed, or a flow without it): the configured mapping, or marketing when the mapping is empty.

The dashboard starts GPP Purpose Mappings empty and does not require them. They matter only at step 4. With empty mappings, a right without a panel choice falls back to marketing for all three fields, so those fields move together. Set Sale of Personal Information, Sharing of Personal Information and Targeted Advertising deliberately if visitors can reach a consent flow without the US opt-out panel and those distinctions matter.

The sensitive-data choice drives SensitiveDataProcessing in each US section (7–23). GPC doesn't change this field. An opt-out marks every position as opted out. Choosing not to limit it confirms only the positions your GPP settings assert, and positions left N/A stay N/A. Without a panel choice, the field encodes the asserted values as saved.

Personal Data Consent and Additional Data Processing Consent read only their mappings (a GPC signal turns a mapped value into no consent). They stay N/A while unassigned.

Before any consent interaction (no panel choice, no accepted categories and no GPC signal), the three opt-out fields encode as N/A.

CMP ID behavior

There is no per-banner CMP-ID field in the persisted GPP settings or update API. The runtime reports one deployment-level CMP ID: CookieBeam's IAB Europe CMP ID, 526. There is no way to supply a different CMP ID through the dashboard.

Configure and publish

  1. Open the banner's Consent frameworks view and select Frameworks.
  2. Enable IAB GPP Support.
  3. Choose the US approach and state sections. Configure the separate legacy and Canada controls only when needed.
  4. Fill GPP Purpose Mappings. Review the legal-assertion fields before changing them.
  5. Click Save GPP Settings, then publish the banner.

Use a clean browser profile from the target geography. Exercise each US opt-out combination, then inspect the runtime:

window.__gpp('ping', (data, success) => console.log({ success, data }))

Check cmpStatus, signalStatus, cmpId, applicableSections, sectionList, and gppString. Use getSection or getField to verify the encoded purpose fields when testing mappings.

If applicableSections is [-1], check the visitor geography, selected US approach, enabled section IDs, and the National-mode preconditions. If the section is present but a purpose field is wrong, check for a GPC signal first (except for SensitiveDataProcessing, which GPC doesn't change), then the visitor's choice in the US opt-out panel, which overrides any mapping. Only for a right the visitor never chose there, inspect its category mapping and the accepted category list.

IAB TCF v2.4 is available on Professional plans and above. It is turned on per banner in the banner settings. The banner then exposes the __tcfapi interface and stores visitor choices as a TC string for vendors on the Global Vendor List. Registration does not by itself make processing lawful; each organisation assesses its own compliance. See Set up IAB TCF.

A banner published before TCF was available keeps its old script until you republish it. TCF runs only on the current banner runtime.

Google Consent Mode and IAB TCF serve different purposes. Consent Mode carries category state to Google tags. TCF signals per-vendor transparency and consent choices to vendors on the Global Vendor List. The two can run together, but one does not replace the other.

AltStyle によって変換されたページ (->オリジナル) /