APIs & Integrations

ss_integration
メンバー

Hubspot tracking code

When we started a few months back, we were using the following snippet for using the tracking code -

<script>
  (function(d,s,i,r) {
      if (d.getElementById(i)){return;}
      var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
      n.id=i;n.src='//js.hs-analytics.net/analytics/'+(Math.ceil(new Date()/r)*r)+'/xxxxxxxxx.js';
      e.parentNode.insertBefore(n, e);
  })(document,"script","hs-analytics",300000);
</script>

When we checked this recently, the instructions lists that we need to use the following snippet.

<!-- 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 -->

Please let us know how we should proceed.

0 いいね!
5件の返信
cortiz32
メンバー

Hubspot tracking code

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

0 いいね!
RyanGamerTV
メンバー

Hubspot tracking code

I need help with the traking code. 

 

 

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

0 いいね!
3PETE
HubSpot Employee
HubSpot Employee

Hubspot tracking code

@ss_integration You should grab whatever is currently in your report settings. Both should work but we have released a newer version of it that involves less code on the client.

0 いいね!
ECERVERA-1
メンバー

Hubspot tracking code

HOLA

 

0 いいね!
適用対象外

Hubspot tracking code

Hi @pmanca - that tracking script you provided is potentially insecure. The Hubspot script is available over HTTPS so should always be served over HTTPS. If the tracking script was used as it is on a HTTP site it would not be encrypted. Can you see if you can get that updated? Basically -don't use a protocolless link - start with HTTPS://

0 いいね!