Connect the HubSpot tracking code to Storydoc to bring document visits into HubSpot and analyze them alongside your other marketing activity.
Trusted by 400,000+ users to automate their workflows
Bring Storydoc visits into HubSpot to get more context around how your contacts interact with your marketing.
Add your HubSpot tracking code to Storydoc to record visits to your business documents in HubSpot alongside activity from your other tracked pages.
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.
Include Storydoc visits in your HubSpot traffic analytics to see how your documents contribute to the traffic you’re generating across your marketing channels.
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.
Connect the HubSpot tracking code once and it applies to all your Storydocs.
You can switch it off for individual Storydocs whenever needed.
Add your existing HubSpot tracking code to Storydoc once and start including document visits in your HubSpot traffic data.
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. 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. 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. 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. 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.
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.
You can find the tracking code in your HubSpot account. Follow HubSpot’s instructions to locate it and copy the complete code.
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?
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.