HubSpot WordPress plugin, cookie banner, GTM, and Microsoft Clarity
SOLVE
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?
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.
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.
HubSpot WordPress plugin, cookie banner, GTM, and Microsoft Clarity
SOLVE
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.