Skip to content

Commit d6906ff

Browse files
bkboothclaude
andcommitted
docs(pixel): deduplicate consent auto-detection description
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9d4027c commit d6906ff

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/audience/pixel/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,14 @@ If your site uses a Consent Management Platform (CMP), the pixel can auto-detect
4747
+ w[i].push(["init",{"key":"YOUR_KEY","consentMode":"auto"}]);
4848
```
4949

50-
> **Note:** `consentMode` and `consent` are mutually exclusive. When `consentMode` is `'auto'`, the pixel ignores the `consent` option and starts in `none` until a CMP is detected.
50+
> **Note:** `consentMode` and `consent` are mutually exclusive — do not set both.
5151
52-
The pixel checks for these CMP standards (in priority order):
52+
The pixel starts in `none` and checks for these CMP standards (in priority order):
5353

5454
1. [**Google Consent Mode v2**](https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced) — reads `analytics_storage` and `ad_storage` from `window.dataLayer`
5555
2. [**IAB TCF v2**](https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md) — reads purpose consents via `window.__tcfapi`
5656

57-
When `consentMode` is `'auto'`, the pixel starts in `none` and upgrades automatically once a CMP is detected. It also listens for ongoing consent changes (e.g. when a user updates their cookie preferences).
58-
59-
If no CMP is detected after a few seconds, the pixel remains in `none`. You can provide a manual fallback by pushing a `consent` command:
57+
Once a CMP is detected, the pixel upgrades consent automatically and continues listening for changes (e.g. when a user updates their cookie preferences). If no CMP is detected after a few seconds, the pixel remains in `none`. You can provide a manual fallback:
6058

6159
```javascript
6260
// Manual fallback if no CMP is present

0 commit comments

Comments
 (0)