Spring Manual

HubSpot Tracking

HubSpot is a commerical Tracking, SEO and Analysis service.

Obtain your tracking code

To obtain your tracking code, in HubSpot complete the following:

  1. Log in to HubSpot, and click Settings on the top-right corner of your screen
  2. Scroll down to the Analyze section and click External Site Traffic Logging
    • var hs_portalid = <6 digit number>
    • var hs_ppa = "<domain name>"
  3. From the sample code block shown, copy the following 2 items (you only need to copy the highlighted parts):

For example, if the code on hubspot looks like this:

 <!-- Start of HubSpot Logging Code --> 
<script type="text/javascript" language="javascript">
var hs_portalid=123456;
var hs_salog_version = "2.00";
var hs_ppa = "yoursite.app12.hubspot.com";
document.write(unescape("%3Cscript src='" + document.location.protocol + "//" + hs_ppa + "/salog.js.aspx' type='text/javascript'%3E%3C/script%3E"));
<!-- End of HubSpot Logging Code -->

The required values are:

  • 123456
  • yoursite.app12.hubspot.com

Configuring Spring

To enable tracking in HubSpot in Spring, create a new page in the Assets tab with the following settings (making sure to change the 'Value' field to match the values you copied following the steps above):

  • Title: Hubspot
  • ID: hubspot
  • Status: Online
  • Value (each value on a new line):
    • <6 digit number>
    • <domain name>

Hubspot asset

Save the page and your done. You may need to wait 1-2 minutes for the changes to become visible on your site.