Hubspot automatically generates some scripts at the end of the page when we add the {{ standard_footer_includes }} line. Is there a way for me to modify some of the scripts it generates? I’d like to be able to add a data attribute named “data-ot-ignore”:
Now:
<script data-hs-allowed="true" src="/_hcms/forms/v2.js"></script>
Desired:
<script data-hs-allowed="true" src="/_hcms/forms/v2.js" data-ot-ignore></script>
The reason we need this is that our cookie policy third-party script automatically disables the “forms/v2.js” script, thinking it’s a tracker. If I could add the “data-ot-ignore” attribute, this third-party script would ignore it. How could I add this attribute?