Copied to clipboard

Flag this post as spam?

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

  • 21 days ago
    Abby (CMS Editor/Manager for Blueberry Markets)

    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="//"

    enter image description here

    Live source code enter image description here

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    21 days ago
    Søren Kottal

    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="//">
  • 20 days ago
    Abby (CMS Editor/Manager for Blueberry Markets)

    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: