Storydoc + HubSpot Tracking Code: Track Storydoc visits in HubSpot

Connect the HubSpot tracking code to Storydoc to bring document visits into HubSpot and analyze them alongside your other marketing activity.

HubSpot Tracking Script 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 HubSpot Tracking Code integration

Bring Storydoc visits into HubSpot to get more context around how your contacts interact with your marketing.

Track visits to your Storydocs

1. Track visits to your Storydocs

Add your HubSpot tracking code to Storydoc to record visits to your business documents in HubSpot alongside activity from your other tracked pages.

Connect Storydoc activity to known contacts

2. Connect Storydoc activity to known contacts

HubSpot can initially track Storydoc visitors anonymously and associate their activity with a known contact when it can identify them, giving you more context around their interest and engagement.

Analyze Storydoc traffic in HubSpot

3. Analyze Storydoc traffic in HubSpot

Include Storydoc visits in your HubSpot traffic analytics to see how your documents contribute to the traffic you’re generating across your marketing channels.

Add Storydoc activity to the customer journey

4. Add Storydoc activity to the customer journey

Bring Storydoc visits into HubSpot alongside activity from your website, landing pages, emails, and other marketing channels to build a more complete picture of how contacts interact with your content.

Manage HubSpot tracking across your workspace

5. Manage HubSpot tracking across your workspace

Connect the HubSpot tracking code once and it applies to all your Storydocs.

You can switch it off for individual Storydocs whenever needed.

How it works

Add your existing HubSpot tracking code to Storydoc once and start including document visits in your HubSpot traffic data.

  1. 1. Get your HubSpot tracking code

    Copy the tracking code for the HubSpot account you want to connect to Storydoc.

    Find your tracking code with HubSpot’s installation instructions

  2. 2. Connect HubSpot to Storydoc

    In Storydoc, go to:

    Integrations → Tracking tools → HubSpot Tracking Script → Connect

    Paste the complete HubSpot tracking code into the Embed code field and click Add integration.

    The tracking code will apply to all your Storydocs.

  3. 3. Add your white-label domain to HubSpot, if applicable

    If your Storydocs are hosted on your own white-label domain (available on the Teams plan), add that domain under Additional site domains in HubSpot so it’s included in your HubSpot analytics.

    Learn how to add external domains to HubSpot tracking

    If you use Storydoc’s standard domain, you can skip this step.

  4. 4. Share your Storydocs as usual

    Once the tracking code is active, HubSpot can record visits when people open your published Storydocs.

    Visitors may initially appear anonymously. Their Storydoc activity can be associated with a known contact when they arrive through a tracked HubSpot marketing email or when the Storydoc is hosted on your own white-label domain and HubSpot can recognize their existing cookie.

  5. 5. Turn off HubSpot tracking for individual Storydocs

    If you don’t want HubSpot tracking a particular Storydoc, open its Integrations panel and switch it off.

    The workspace-wide 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 HubSpot Tracking Script
Connecting Storydoc to HubSpot Tracking Script
Connecting Storydoc to HubSpot Tracking Script
Connecting Storydoc to HubSpot Tracking Script
Connecting Storydoc to HubSpot Tracking Script

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 tracking code in your HubSpot account. Follow HubSpot’s instructions to locate it and copy the complete code.

Open HubSpot’s tracking code setup guide


Yes, in some cases. HubSpot can recognize a contact when they open a Storydoc from a tracked HubSpot marketing email or visit a Storydoc hosted on your white-label domain (available on the Teams plan) with an existing HubSpot cookie.

Until HubSpot can identify them, their activity will remain anonymous.


Only if you’re using your own white-label domain (available on the Teams plan). In that case, add the domain under Additional site domains in HubSpot.

You don’t need to do this if your Storydocs use Storydoc’s standard domain.


No. They give you different views of your Storydoc activity.

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

HubSpot’s tracking code adds Storydoc visits to your wider HubSpot marketing analytics, so you can analyze that traffic alongside your other marketing channels.


No. The HubSpot tracking code is specifically for collecting visitor activity from your Storydocs in HubSpot.

Storydoc’s HubSpot CRM integration lets you create, personalize, and manage Storydocs from HubSpot, so the two integrations can be used together for different purposes.


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

You can switch it 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 the tracking code from HubSpot and paste it into Integrations → Tracking tools → HubSpot Tracking Script.


Still have questions?

Bring Storydoc visits into your HubSpot marketing data

Connect HubSpot's tracking code to Storydoc to analyze document visits alongside your other marketing activity and get more context around how contacts engage with your content.