Segment

View as Markdown

Integrate Segment to collect analytics and route user data to your preferred analytics destinations.

1

Get your Segment writeKey

In your Segment workspace, navigate to your Source, then go to Settings > API Keys and copy the Write Key.

2

Add Segment to docs.yml

In your docs.yml file, add the Segment writeKey:

docs.yml
1analytics:
2 segment:
3 write-key: ${SEGMENT_WRITE_KEY} # scans environment variable