Hubspot tracking code and MadCap

We are having challenges dropping Hubspot tracking code onto MadCap, our authoring tool for our technical docs site. I’m ommitting our actual hubspot-id in the code below using “hubspot-id”.

<script type=“text/javascript” id=“hs-script-loader” async=“async” defer=“defer” src="file://js.hs-scripts.com/hubspot-id.js>

MadCap does not accep the above code, where ‘defer’ is an unexpected token, so we modified it to the following:

<script type=“text/javascript” id=“hs-script-loader” async defer src="file://js.hs-scripts.com/hubspot-id.js>

However, when we do that Hubspot does not pick u on it, showing the status as blocked.

Has anyone had success modifying the Hubspot tracking code to work with MadCap? Thank you!

Hey, @MRusso9 :waving_hand: This is a tough one to find any related community posts for. I found this older post in the MadCap community that gives a clue, but my not the full needed info HubSpot - MadCap Software Forums We’ll leave this open in-case other community members have any suggestions.

Best,

Jaycee