HubSpot WordPress plugin, cookie banner, GTM, and Microsoft Clarity

CC_x
Teilnehmer/-in

Hello!

I’ve set up our HubSpot tracking code using the official WordPress plugin. Am I right in thinking that means I don’t need to do anything with Google Tag Manager to get HubSpot tracking working?

We’ve also enabled the HubSpot cookie banner. Does that automatically integrate with GTM, or is there something I need to do to connect the two?

We’d like to add Microsoft Clarity to our site. How can I make sure that when a visitor declines cookies in the HubSpot banner, Clarity tracking is also disabled?

Thanks in advance!

0 Upvotes
1 Akzeptierte Lösung
CarolinaDeMares
Lösung
Stratege/Strategin | Platinum Partner
Stratege/Strategin | Platinum Partner

Hi @CC_x !

 

If you’re using the WordPress plugin, HubSpot tracking is already set up — you don’t need GTM for that. The HubSpot cookie banner only controls HubSpot’s own tracking, it doesn’t automatically manage GTM or other tools.

 

Google Ads will still fire if you’ve installed its tag directly (e.g. via GTM or theme code). If you want Google Ads (or Clarity) to respect the HubSpot cookie banner, you need to control those scripts through GTM and tie their firing to the HubSpot consent state.

 

Hope this helps! 

 

Carolina De Mares

CarolinaDeMares_0-1759164827844.png

Goirkekanaaldijk 14
5046 AT Tilburg

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
2 Antworten 2
CarolinaDeMares
Lösung
Stratege/Strategin | Platinum Partner
Stratege/Strategin | Platinum Partner

Hi @CC_x !

 

If you’re using the WordPress plugin, HubSpot tracking is already set up — you don’t need GTM for that. The HubSpot cookie banner only controls HubSpot’s own tracking, it doesn’t automatically manage GTM or other tools.

 

Google Ads will still fire if you’ve installed its tag directly (e.g. via GTM or theme code). If you want Google Ads (or Clarity) to respect the HubSpot cookie banner, you need to control those scripts through GTM and tie their firing to the HubSpot consent state.

 

Hope this helps! 

 

Carolina De Mares

CarolinaDeMares_0-1759164827844.png

Goirkekanaaldijk 14
5046 AT Tilburg
0 Upvotes
NSimonis
Mitglied

This can be a bit tricky. The main thing is making sure the hubspot cookie banner actually passes the right consent signal so that gtm and clarity don’t fire before a visitor accepts. If the banner isn’t syncing properly, you may need to connect it with gtm’s data layer or use clarity’s consent api so tracking only starts after approval. That usually clears up the conflict.

0 Upvotes