Join our new community forum for support & discussion

Join Now

Home Support Themes ExpertHive Hubspot Tracking Code

Hubspot Tracking Code

  • Author
    Posts
  • jay@edmission.co

    Hello, I am integrating Hubspot as my CRM tool, they have given me a tracking code to embed in my pages but I cannot find where to put them. The code looks like below:

    <!– Start of HubSpot Embed Code –>
    <script type=”text/javascript” id=”hs-script-loader” async defer src=”//js.hs-scripts.com/XXXXXXXX.js”></script>
    <!– End of HubSpot Embed Code –>

    Thanks.

    yevhen developer

    If they require it in the site “head” then please try this code snippet:

    add_action('wp_head', function() {
        echo 'put here your tracking code';
    });
    jay@edmission.co

    Hello Yevhen, this was the instruction:

    Copy and paste this tracking code into every page of your site, just before the </body> tag.

    Do I just add the snippet in code snippet? Thanks.

    yevhen developer

    If you need to put this code before </body> tag then please try this code snippet

    add_action( 'wp_footer', function () {
         echo 'put here your tracking code';
    } );
Viewing 4 posts - 1 through 4 (of 4 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.