Adding Marketo Measure Script via Google Tag Manager

When installing the Marketo Measure javascript, we strongly recommend hard-coding the script directly into your site. However, if that isn’t possible, you can also use Google Tag Manager (GTM) to load the Marketo Measure JS. Please note that Marketo Measure JS loaded through GTM is susceptible to latency. Latency causes a delay in script load times which can result in missing around 3-5% of all form submissions.

If you decide to add our script via GTM, please set the Marketo Measure script to the highest priority in your firing order and ensure there are no synchronous scripts in front of the Marketo Measure tag in order to reduce any effects from GTM latency.


Please use this support article by Google to learn more.

How to Add Marketo Measure JS via Google Tag Manager

  1. Open GTM and add the Marketo Measure script on your website container. Be sure to select Custom HTML tag.

  2. Use the Marketo Measure script below and incorporate it in your container.

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

  3. Click Add a Firing Rule so you can tell Google to load our snippet on All Pages.

  4. Go to the Container Draft Overview section on the left. Click the button to create a new version of your container and publish the changes.

On this page