Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mar 26, 2024 @ 06:55
    Abby (CMS Editor/Manager for Blueberry Markets)
    0

    Adding a script in Umbraco header or body opening not working

    Hi here,

    Added a Hubspot code on the site's homepage (template and blocks developed by an agency), however, it doesn't seem to work as per this Hubspot troubleshooting guide

    Note: Using Umbraco 11

    I only added this part based on the instruction on the content side, or am I doing this incorrectly?

     type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/xxxxxxxx.js"
    

    enter image description here

    Live source code enter image description here

  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    Mar 26, 2024 @ 10:48
    Søren Kottal
    100

    I think your agency are being a bit too clever about how to implement this, by hardcoding the script tags in the html. You can work around this, by closing the hardcodet script tag, then adding you own, like this:

    </script><script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/xxxxxxxx.js">
    
  • Mar 27, 2024 @ 00:52
    Abby (CMS Editor/Manager for Blueberry Markets)
    0

    Thank you very much, Søren. It finally worked! enter image description here

    Did not get any documentation from the agency for that so this is appreciated.

Please Sign in or register to post replies

Write your reply to:

Draft