Installation
v1.0
Search this version
Installation
Installation
Features
Comments
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Hubspot
Copy Markdown
Open in ChatGPT
Open in Claude
To add Hubspot Analytics integration to %product%, you must have a plan with Custom HEAD Tags enabled.

Setting up Hubspot Analytics
Follow the steps as provided in Install the HubSpot tracking code. However, make sure to remove defer and async from the script tag.
The script should look like:
Embed Code
<script type="text/javascript" id="hs-script-loader" src="//js.hs-scripts.com/{{your-id}}.js"></script>HubSpot Analytics integration is created for traditional websites, while your %product% documentation is built over a single page application. To trigger tracking page views, add the following Custom HEAD Tag after the embed code above:
Custom HEAD Tag
<script> var trackPage = function(event) { var _hsq = window._hsq; if (!_hsq) { console.log('hsq not loaded yet'); return; } _hsq.push(['setPath', window.location.pathname]); _hsq.push(['trackPageView']); } document.addEventListener('onsectionchange', trackPage); document.addEventListener('onpagechange', trackPage);</script>Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Zendesk WidgetDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message