Skip to content

Commit 62f256b

Browse files
bkboothclaude
andcommitted
docs(audience): move pixel Test mode section to sit with other init options
Group it with the other configuration sections (Consent Modes, Auto-Tracked Events) instead of orphaning it after the operational details (Cookies, CSP, Browser Support). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 7b35e2f commit 62f256b

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

packages/audience/pixel/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ document.head.appendChild(s);
106106
</script>
107107
```
108108

109+
## Test mode
110+
111+
Set `"testMode": true` in the init options to mark every event with a
112+
top-level `test: true` flag. Useful for development, staging, or QA —
113+
events still flow through the production endpoint, but can be filtered
114+
out of production analytics downstream.
115+
116+
```diff
117+
- w[i].push(["init",{"key":"YOUR_KEY","consent":"anonymous"}]);
118+
+ w[i].push(["init",{"key":"YOUR_KEY","consent":"anonymous","testMode":true}]);
119+
```
120+
109121
## Cookies
110122

111123
| Cookie | Lifetime | Purpose |
@@ -152,18 +164,6 @@ Note: the nonce covers the inline snippet only. The CDN-loaded script (`imtbl.js
152164
| Safari | 14+ |
153165
| Edge | 80+ |
154166

155-
## Test mode
156-
157-
Set `"testMode": true` in the init options to mark every event with a
158-
top-level `test: true` flag. Useful for development, staging, or QA —
159-
events still flow through the production endpoint, but can be filtered
160-
out of production analytics downstream.
161-
162-
```diff
163-
- w[i].push(["init",{"key":"YOUR_KEY","consent":"anonymous"}]);
164-
+ w[i].push(["init",{"key":"YOUR_KEY","consent":"anonymous","testMode":true}]);
165-
```
166-
167167
## Documentation
168168

169169
- [Tracking Pixel](https://docs.immutable.com/docs/products/audience/tracking-pixel) — this package (setup, consent modes, auto-tracked events)

0 commit comments

Comments
 (0)