Master Tracking Hubspot Bookings via Google Analytics 4 & Tag Manager

May 10, 2024 at 2:03:04 PM

Master Tracking Hubspot Bookings via Google Analytics 4 & Tag Manager

The article provides a detailed guide on how to track Hubspot booking forms with Google Analytics 4 (GA4) and Google Tag Manager (GTM). The process is broken down into two main steps:

  1. Adding an event listener in GTM to check for messages containing information on a successful meeting booking and sending this information to the Data Layer.
  2. Creating a GA4 tag to collect the data from the Data Layer and send it to Google Analytics 4.

The guide also includes a Javascript code for the Hubspot Meetings Listener, which adds an event listener to the window object. This listener checks if the message contains data indicating a successful meeting booking and, if so, pushes data related to the booking into the Data Layer.

The article then provides instructions on how to test the custom code, create a GA4 event and find data in reports, create a trigger, create Data Layer variables, and create a tag. It also explains how to find the Measurement ID in your Google Analytics 4 data stream and how to add other elements to the tag.

The guide also includes steps on how to test the new event and how to create event-scoped custom dimensions in GA4. Finally, it explains how to publish the container and find data in GA4.

The author, Julius Fedorovicius, concludes by reminding readers that Hubspot booking forms require a different listener than regular Hubspot forms. He also mentions that he has a video on his YouTube channel discussing regular forms.

Q&A

Have more questions on this topic? Ask our AI assistant for in-depth insights.

Want Personalized Digital Marketing Insights at Your Preferred Time?

Our Smart Newsletter brings you the latest insights on the topics you love, delivered at your preferred time and frequency.

Discover More

Server-Side GTM Users: No Action Needed for Google Cloud OpenSSH Update

Server-Side GTM Users: No Action Needed for Google Cloud OpenSSH Update

Google Tag Manager to End Internet Explorer Support on July 15

Google Tag Manager to End Internet Explorer Support on July 15

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source
HubSpot Launches Investigation into Customer Account Hacks

HubSpot Launches Investigation into Customer Account Hacks

Google Tag Manager Rolls Out Tag Diagnostics Tool Trending ️‍🔥

Google Tag Manager Rolls Out Tag Diagnostics Tool

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Analytics Adds 5 New Recommended Events for Lead Generation Trending ️‍🔥

Google Analytics Adds 5 New Recommended Events for Lead Generation

Google Adds New Features to GA4 Before UA Shutdown

Google Adds New Features to GA4 Before UA Shutdown

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source