Consent not granted when clicking thru to subdomain

I have a working implementation of FS Cookie Consent (fully GPDR compliant) using GTM. When a user accepts analytic cookies, then navigates to a subdomain to make a purchase the consent does not follow the user to the subdomain.

User journey:

  1. User visits WF site and accepts analytics cookies "analytics_storage": "granted"
  2. User clicks link to subdomain hosted by Thrivecart, but the previous consent is reset to 'analytics_storage': 'denied'.

The same GTM tag is installed on both the main and subdomains.

Is there a way to carry the consent forward to the subdomain?

Happy to provide more details—thanks!

Hey @zephyr! You’ll need to define the domain in the Cookie Consent app.

For example, if you have example.com and app.example.com where example.com is the main site using our Cookie Consent, open the app and set the domain settings field value to .example.com notice it starts with a dot. The dot must be the prefix value of the domain field entry.

Just like in the image below

I completed the above step setting it to .jessicapaschke.com.

When I click through to a page on the subdomain hosted by Thrivecart, the GTM tag appears to load and carry over the correct consent—win!

However, the when selecting the GA4 stream, it says:

Google Tag: G-LXXXXXXXXX not found

Please verify that the tag:

* Is installed on this page
* Is not being blocked (by a browser extension or a consent dialog)

Edit: I also do not see the traffic in GA4 real time or debug data streams.

Edit #2: With just enough knowledge to be dangerous, I added the following script to the Custom Tracking Code > All Pages block in the Thrivecart product I’m using to test:

<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({ event: "analytics-activated" })
dataLayer.push({ event: "marketing-activated" })
console.log("Pushed consent settings to dataLayer.");
</script>

Seems to trigger the appropriate tags in GTM and the previous not found error is gone… but the data streams are not consistently showing (yet?).

Great to hear the error is gone. Please let me know if there is anything related to Cookie Consent that you need more assistance with :pray: