{"id":5770,"date":"2024-01-29T15:24:19","date_gmt":"2024-01-29T12:24:19","guid":{"rendered":"https:\/\/trackingchef.com\/?p=5770"},"modified":"2024-07-08T15:06:07","modified_gmt":"2024-07-08T12:06:07","slug":"hubspot-cookie-consent-with-google-tag-manager","status":"publish","type":"post","link":"https:\/\/trackingchef.com\/google-tag-manager\/hubspot-cookie-consent-with-google-tag-manager\/","title":{"rendered":"Hubspot Cookie Consent with Google Tag Manager"},"content":{"rendered":"\n
Hubspot is an all-encompassing solution for marketers. You can handle in one place all your marketing needs, from emails to pixels to ad spend tracking.<\/p>\n\n\n\n
But as with all-encompassing solutions, you get a mediocre experience at best. Your ad spend tracking can include only Google, Facebook and LinkedIn Ads. Other platforms aren’t welcome. Your pixels can easily be loaded on the site, but custom events can’t really be handled via Hubspot.<\/p>\n\n\n\n
Don’t get me wrong, I’m still a Hubspot fan. But I acknowledge that it can’t handle everything marketing at the level I expect it to do out of the box. <\/p>\n\n\n\n
One example for this is marketing pixels.<\/p>\n\n\n\n
Working with Hubspot for years now, my best practice has always been to handle all the pixels separately from the Hubspot tag and directly via GTM. It improves the site’s performance and gives me granular control over tags and triggers.<\/p>\n\n\n\n
The Hubspot Cookie Banner<\/h2>\n\n\n\n
A similar issue occurs when handling cookie consent using the Hubspot cookie banner. When loading the Google Tag Manager or Google Analytics scripts (or any other script for that matter) via the Hubspot tag, you get a simple integration out of the box with the consent banner. <\/p>\n\n\n\n
Consent granted? GTM & GA will run. No consent? no code will run.<\/p>\n\n\n\n