<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HubSpot Cookie Banner Not Sending Consent to Google Tag Manager on WordPress in Blog, Website &amp; Page Publishing</title>
    <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/HubSpot-Cookie-Banner-Not-Sending-Consent-to-Google-Tag-Manager/m-p/1140872#M15370</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m looking for help or confirmation from anyone who has successfully integrated HubSpot’s new cookie consent tools with Google Tag Manager (GTM) and GA4 — specifically on &lt;STRONG&gt;WordPress&lt;/STRONG&gt; sites.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my setup:&lt;/P&gt;&lt;P&gt;- Main website is built on WordPress&lt;/P&gt;&lt;P&gt;- Subdomains for blog and landing pages (`blog.`, `info.`) are on HubSpot CMS&lt;/P&gt;&lt;P&gt;- I’m using HubSpot’s new consent management features across all domains&lt;/P&gt;&lt;P&gt;- Google Tag Manager and Google Analytics 4 are integrated&lt;/P&gt;&lt;P&gt;- GTM config tag is set to fire on Consent Initialization&lt;/P&gt;&lt;P&gt;- Consent banner visibly shows upon WordPress and works from the user’s perspective&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Even though the banner shows on WordPress, it seems like no consent signal is actually passed to GTM/GA4. Specifically:&lt;/P&gt;&lt;P&gt;- My GA4 event tags fire in GTM Preview Mode&lt;/P&gt;&lt;P&gt;- But no events appear in GA4 DebugView&lt;/P&gt;&lt;P&gt;- I confirmed that "debug_mode: true" is set on my GA4 config tag&lt;/P&gt;&lt;P&gt;- I ran this in the browser console after clicking “Accept” on the banner:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp; js&lt;BR /&gt;&amp;nbsp; dataLayer.filter(d =&amp;gt; d.event &amp;amp;&amp;amp; d.event.includes('consent'))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; …and got an empty array `[]`, which suggests no `consent_update` or `gtag('consent')` event is being pushed into the dataLayer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Has anyone successfully gotten HubSpot’s cookie banner to send consent updates to Google Tag Manager on a WordPress site (not just HubSpot CMS pages)?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2025 14:40:28 GMT</pubDate>
    <dc:creator>Kec415</dc:creator>
    <dc:date>2025-04-25T14:40:28Z</dc:date>
    <item>
      <title>HubSpot Cookie Banner Not Sending Consent to Google Tag Manager on WordPress</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/HubSpot-Cookie-Banner-Not-Sending-Consent-to-Google-Tag-Manager/m-p/1140872#M15370</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m looking for help or confirmation from anyone who has successfully integrated HubSpot’s new cookie consent tools with Google Tag Manager (GTM) and GA4 — specifically on &lt;STRONG&gt;WordPress&lt;/STRONG&gt; sites.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my setup:&lt;/P&gt;&lt;P&gt;- Main website is built on WordPress&lt;/P&gt;&lt;P&gt;- Subdomains for blog and landing pages (`blog.`, `info.`) are on HubSpot CMS&lt;/P&gt;&lt;P&gt;- I’m using HubSpot’s new consent management features across all domains&lt;/P&gt;&lt;P&gt;- Google Tag Manager and Google Analytics 4 are integrated&lt;/P&gt;&lt;P&gt;- GTM config tag is set to fire on Consent Initialization&lt;/P&gt;&lt;P&gt;- Consent banner visibly shows upon WordPress and works from the user’s perspective&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Even though the banner shows on WordPress, it seems like no consent signal is actually passed to GTM/GA4. Specifically:&lt;/P&gt;&lt;P&gt;- My GA4 event tags fire in GTM Preview Mode&lt;/P&gt;&lt;P&gt;- But no events appear in GA4 DebugView&lt;/P&gt;&lt;P&gt;- I confirmed that "debug_mode: true" is set on my GA4 config tag&lt;/P&gt;&lt;P&gt;- I ran this in the browser console after clicking “Accept” on the banner:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp; js&lt;BR /&gt;&amp;nbsp; dataLayer.filter(d =&amp;gt; d.event &amp;amp;&amp;amp; d.event.includes('consent'))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; …and got an empty array `[]`, which suggests no `consent_update` or `gtag('consent')` event is being pushed into the dataLayer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Has anyone successfully gotten HubSpot’s cookie banner to send consent updates to Google Tag Manager on a WordPress site (not just HubSpot CMS pages)?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 14:40:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/HubSpot-Cookie-Banner-Not-Sending-Consent-to-Google-Tag-Manager/m-p/1140872#M15370</guid>
      <dc:creator>Kec415</dc:creator>
      <dc:date>2025-04-25T14:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: HubSpot Cookie Banner Not Sending Consent to Google Tag Manager on WordPress</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/HubSpot-Cookie-Banner-Not-Sending-Consent-to-Google-Tag-Manager/m-p/1141065#M15373</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/854223"&gt;@Kec415&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to our community. Thanks for including your troubleshooting steps. I'd like to invite some of our community experts to the conversation— &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/55480"&gt;@jonchim&lt;/a&gt;&lt;/SPAN&gt;, do you have any additional troubleshooting steps you can recommend to &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/854223"&gt;@Kec415&lt;/a&gt;&lt;/SPAN&gt;? I know for me, GTM is one area I struggle with for sure. Thanks for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 21:51:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/HubSpot-Cookie-Banner-Not-Sending-Consent-to-Google-Tag-Manager/m-p/1141065#M15373</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-04-25T21:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: HubSpot Cookie Banner Not Sending Consent to Google Tag Manager on WordPress</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/HubSpot-Cookie-Banner-Not-Sending-Consent-to-Google-Tag-Manager/m-p/1172438#M15852</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, when working with HubSpot, Google Tag Manager, and cookie consent, the script to handle consent events (like listening for hsCookieConsentApplied) can technically be placed anywhere in your source code, but placement matters for execution timing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Place it after the HubSpot tracking code, so that the consent message is available when the script runs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you've installed the HubSpot tracking code via a Custom HTML tag in GTM (&lt;/SPAN&gt;&lt;A class="c-link c-link--underline" href="https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code" target="_blank" rel="noopener noreferrer" data-stringify-link="https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code" data-sk="tooltip_parent"&gt;Install the HubSpot tracking code via GTM&lt;/A&gt;&lt;SPAN&gt;), you can include the listener script inside the same tag, directly below the HubSpot script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That way, everything loads in sequence, and you're able to capture and forward the consent decision (e.g., into dataLayer for GA4/GTM compliance).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 05:26:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/HubSpot-Cookie-Banner-Not-Sending-Consent-to-Google-Tag-Manager/m-p/1172438#M15852</guid>
      <dc:creator>SanjayKumar</dc:creator>
      <dc:date>2025-07-03T05:26:09Z</dc:date>
    </item>
  </channel>
</rss>

