Skip to main content
Add your Segment write key to your docs.json file to send analytics to Segment.

Configuration options

string
required
Your Segment write key.
string
A custom CDN URL for loading the Segment script. Use this if you configure a custom domain in Segment to serve analytics from your own subdomain, which helps avoid ad blockers that block cdn.segment.com. Must be an HTTPS URL without query parameters or fragments. Defaults to https://cdn.segment.com.