Support Center
v1.0
Features
Comments
Page
Code Steps
Category
Label
Link
Separator
Title
Message
Page icon
No icon. This page keeps the plain index row.
orSVG or PNG, square, at least 32×32.
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
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
To add Hubspot Analytics integration to DeveloperHub, 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:
<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 DeveloperHub documentation is built over a single page application. To trigger tracking page views, add the following Custom HEAD Tag after the embed code above:
<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>
Last updated on May 4, 2025
Was this page helpful?
Next to read:
Zendesk Widgetnull
Discard 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