How to track Hubspot form submits in Google Analytics with Google Tag Manager (2022)

Wanna track Hubspot form submits that happen on your website? Here’s is the professional way. Unlike other tutorials, we’re also sending the form name which is a must if you have more than 1 form.


👆 2023 Update - Let us install conversion tracking for you.

You want to track Hubspot form submissions and send them as a conversion to Google Ads, Google Analytics, or Meta Pixel. Many clients struggle with complex and outdated tutorials, and are usually not happy with the result or how they’ve spent that time.

Introducing:

Hubspot form conversion tracking Service

✅ We’ll implement Hubspot tracking in under 1h.

✅ We test the Hubspot form conversion setup fully.

✅We’ll show you a video of the conversions being tracked, in real time. ✅ We handle all platforms, Google Analytics, Google Ads, Meta & others.

✅ We use the latest features, clean setup, no outdated unreliable "workarounds” like redirects.

✅ And we are available to clean up your messy, outdated tags and fix any other conversion tracking problems.

Hubspot form conversion tracking Service

Hubspot Form conversion tracking service promo image with laptop and hubspot forms, sending conversions to Google Ads, Google Analytics and Facebook Meta Pixel

The quickest and easiest way on planet Earth to track Hubspot Form Conversions.

Installation by a professional. Guaranteed to work. Implemented in 1h (or less). Fully tested, including a video where we show the conversions being tracked in real time. Or your money back.



Original Blog Post below. Please note that while this method works, the latest features are not included.

Here’s a video to follow

Custom HTML tag

This is basically a custom code snippet that’s 24/7 ‘listening’ to all Hubspot forms on your website. It’s waiting for a the form to tell use “Hey! Someone submitted this form successfully!”

Datalayer variable

We need to store the name of the form to be able to send it to Google Analytics. The custom HTML tag adds the form name to the dataLayer, so we’ll turn that into a variable we can reference when sending stuff to Google Analytics.

Name: Forms hs-form-name

Data Layer Variable Name: hs-form-name

Trigger

When should we send stuff to Google Analytics? We’ll need a trigger to fire our tag. Our first custom HTML tag (the one listening for Hubspot forms) will add this custom event to our dataLayer. So we’ll turn that to a trigger we can use to fire our Google Analytics event tag.

Event name: hubspot-form-success

Google Analytics Event Tag

Finally! With all that stuff we’ve tagged, saved, listened, triggered, we can use to send the info to Google Analytics.

Google Tag Manager Analytics hubspot event tag

Need help?

I’m a freelancer and love to help companies big and small with all their analytics tracking stuff. Google Tag Manager, Hubspot, Squarespace etc.

Get in touch at @info

Previous
Previous

Changing Squarespace 7.1 Cart Page Colour Theme (2022)

Next
Next

Use CSS to make any custom designs in Square Online (2022)