Skip to content
Mintlify
Mintlify
Analytics

Segment

Integrate Segment with your Mintlify documentation to route analytics events to downstream tools like warehouses, CRMs, and marketing platforms.

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

"integrations": {
    "segment": {
        "key": "required",
        "cdnUrl": "optional"
    }
}

Configuration options

keystringrequired

Your Segment write key.

cdnUrlstring

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.

Was this page helpful?Suggest editsRaise issue