Storydoc + Segment: Bring Storydoc visitor data into your customer data

Connect Segment to Storydoc to collect visitor data from your business documents and send it to the analytics, marketing, and other tools your team already uses.

Segment Embed Code logo

Trusted by 400,000+ users to automate their workflows

Carta logo
iHeartMedia logo
Meta logo
NICE logo
American Cancer Society logo
Xerox logo

Everything you can do with the Storydoc x Segment integration

Bring Storydoc visitor data together with the customer data you're already collecting through Segment.

Collect visitor data from your Storydocs

1. Collect visitor data from your Storydocs

Add Segment’s Analytics.js tracking code to Storydoc to collect data when people visit your business documents.

Segment can capture information such as the page URL, referral source, device information, and campaign parameters.

Send Storydoc data to your connected tools

2. Send Storydoc data to your connected tools

Collect Storydoc visitor data through Segment and send it to the analytics, marketing, and other tools your team already uses.

This means you don’t need to add a separate tracking script to Storydoc for every tool you want to use with that data.

Connect Storydoc visits to other customer activity

3. Connect Storydoc visits to other customer activity

Bring Storydoc visitor data together with data from your website, apps, and other sources to get more context around how customers interact with your business.

Understand where Storydoc visitors come from

4. Understand where Storydoc visitors come from

Segment can capture information such as UTM parameters and referral sources, helping you understand which campaigns and channels are bringing people to your Storydocs.

Manage Segment across your Storydoc workspace

5. Manage Segment across your Storydoc workspace

Connect Segment once at workspace level and the tracking code applies to all your Storydocs.

You can switch Segment off for individual Storydocs whenever needed.

How it works

Add Storydoc as a data source in Segment, then send the data you collect to the tools your team needs.

  1. 1. Get your Segment Analytics.js snippet

    Get the Analytics.js snippet for the JavaScript source you want to use with Storydoc and copy the complete code.

    See Segment’s Analytics.js documentation

  2. 2. Connect Segment to Storydoc

    In Storydoc, go to:

    Integrations → Tracking tools → Segment Embed Code → Connect

    Paste the complete Analytics.js snippet into the Embed code field and click Add integration.

    The tracking code will apply to all your Storydocs.

  3. 3. Share your Storydocs as usual

    Once connected, Segment can start collecting visitor data when people open your published Storydocs.

    You don’t need to set up Segment separately for each document.

  4. 4. Send Storydoc data to your connected tools

    Choose where you want your Storydoc data to go using the tools you’ve connected to Segment.

    See Segment’s guide to adding a destination

  5. 5. Turn off Segment for individual Storydocs

    If you don’t want Segment running on a particular Storydoc, open its Integrations panel and switch Segment off.

    The workspace connection will remain active for your other Storydocs. If the document is already published, republish it for the change to take effect.

Connecting Storydoc to Segment Embed Code
Connecting Storydoc to Segment Embed Code
Connecting Storydoc to Segment Embed Code
Connecting Storydoc to Segment Embed Code
Connecting Storydoc to Segment Embed Code

Need more control over your workflows?

Go beyond native integrations with the Storydoc API.

Automatically generate personalized Storydocs, trigger follow-ups based on engagement, and connect everything to your go-to-market stack.

Build workflows that fit how your team works.

Storydoc API automations dashboard

Frequently Asked Questions

You can find the Analytics.js snippet for your JavaScript source in Segment. Follow Segment’s setup guide to locate it and copy the complete code.

See Segment’s Analytics.js setup guide


Segment’s Analytics.js can collect information about visits to your Storydocs, including page URLs, referral sources, device and browser information, and UTM campaign parameters. The exact data available will depend on how your Segment source is configured.


Yes. You can send the data Segment collects from your Storydocs to compatible tools you’ve connected to Segment.

This lets you use Storydoc visitor data alongside the customer data you’re already sending to your analytics, marketing, and other tools.


No. They help you use Storydoc data in different ways.

Storydoc’s built-in analytics show you how readers engage with your business documents, including views, reading progress, slide-level engagement, and CTA activity.

Segment lets you bring Storydoc visitor data together with your other customer data and send it to the analytics, marketing, and other tools your team uses.


No. Connect Segment once under Integrations → Tracking tools, and the tracking code applies to all your Storydocs.

You can switch Segment off for individual Storydocs whenever needed. If the Storydoc is already published, republish it for the change to take effect.


Tracking tags don’t fire on Storydoc preview links. Publish your Storydoc and test the live link instead.


No coding is required on the Storydoc side. Copy your Analytics.js snippet from Segment and paste it into Integrations → Tracking tools → Segment Embed Code.


Still have questions?

Connect Storydoc to the rest of your customer data

Use Segment to bring Storydoc visitor activity into the bigger picture and share it across the tools your team already uses.