Member-only story
How to track Hubspot meeting bookings in GA4 and LinkedIn with GTM
Track conversions for booked meetings in GA4 and LinkedIn
Some time ago I wrote about tracking form submissions using GTM, so I thought to add the missing piece for those of you using Hubspot, and do one more tutorial on tracking the booked meetings.
This will be useful to you if you want to use the calendar form instead of the regular form, so that visitors can directly book meetings with your sales team.
To keep this organized, I’ll split the article into three parts:
- Setting up the tracking for the Hubspot calendar in GTM
- Tracking the conversions in GA4 via GTM
- Tracking the conversions in LinkedIn via GTM
It’s going to be a super long one, so let’s dive right into it.
Part 1: Set up tracking for Hubspot meetings in GTM
We’ll start by setting up the tracking for the calendar form. We’ll need two things:
- A listener that listens to all HS form submissions
- A trigger that fires when a new meeting is booked
So go over to Tags > Add new, and choose Custom HTML tag for the Tag type. Name it “HS — Form listener”, and paste this code:
<script>
window.addEventListener( 'message', function(event) {
if ( event.data.meetingBookSucceeded ) {…