Customer data platform — one install, fan events out to 300+ downstream destinations.
Configure
integrations.segmentstringpathrequiredSegment Write key. Script injects via <Script strategy="afterInteractive"> and loads from https://cdn.segment.com.
{
"integrations": {
"segment": "abcxyz123"
}
}Where to find your write key
Segment workspace → Sources → your JavaScript source → Settings → API Keys → Write Key.
Or set it from the dashboard — Editor → Configurations → AI & Advanced → Integrations.
Gotchas
Don't also ship a destination that Segment already forwards to (e.g. GA4 via Segment +
ga4here = double counting).
Loading behavior
Strategy:
afterInteractive— injected after page interactivity, so it never blocks first paint.CSP: if you enforce a Content Security Policy, allowlist
https://cdn.segment.cominscript-src.Removal: delete the
integrations.segmentkey (or blank it in the dashboard) and redeploy — the script disappears on the next page load.
Related
Schema reference —
integrations— auto-generated field listing