Adding Marketo Measure to Hubspot adding-marketo-measure-to-hubspot

Learn how to add the Marketo Measure JavaScript to track your Hubspot landing pages and form submissions.

Hubspot is a bit different from other marketing automation systems in that it can host your landing pages / forms AND your website. It’s important to note that the below instructions are for having Marketo Measure track activity on Hubspot-hosted pages. If you power your website with a CMS other than Hubspot (for example, Wordpress), you need to add the Marketo Measure JavaScript to that CMS as well.

If you are deploying the JavaScript through a tag management provider such as Google Tag Manager, you do not need to manually hard code the Marketo Measure JavaScript into your website.

Getting Started getting-started

Once you have logged into your Hubspot account, follow these steps.

  1. Navigate to Content.

  2. Click Content Settings.

  3. Within Content Settings, click the Site Header HTML (see image below).

  4. Add the following script within your <header>:

    <script type="text/javascript" src="" async=""></script>

    It should look like this:

<!-- Marketo Measure Javascript -->
<script type="text/javascript" src="" async="">
There may already be other tracking code snippets in this area, such as a Google Analytics code. Be sure to separate them by a semicolon ; and a single space, like so:
<script type="text/javascript" src="" async=""></script>; <script async="true" type="someothercode" src="someotherfile.js" ></script>