Sitemap
School of Content

We focus on content strategy, management, and marketing, and share our knowledge through clearly-written, hands-on articles. We offer practical advice and we work mostly with companies in the SaaS, e-commerce, health and marketing niches.

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:

  1. Setting up the tracking for the Hubspot calendar in GTM
  2. Tracking the conversions in GA4 via GTM
  3. 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 ) {…

--

--

School of Content
School of Content

Published in School of Content

We focus on content strategy, management, and marketing, and share our knowledge through clearly-written, hands-on articles. We offer practical advice and we work mostly with companies in the SaaS, e-commerce, health and marketing niches.

Andreea Macoveiciuc
Andreea Macoveiciuc

Written by Andreea Macoveiciuc

I bring clarity to content chaos and help SaaS companies scale their marketing by aligning their strategy to business goals. https://www.schoolofcontent.net/

No responses yet