Cookie consent mode subdomain sharing

We’re using Finsweet Cookie Consent on our marketing site. It works great there — consent is stored properly and tags are fired based on categories.

However, we also use Google Tag Manager on our platform, and the issue is: GTM has no access to the cookie consent set on the main domain. This means we need to ask for consent again, which we’d prefer to avoid.

Is it possible to configure Finsweet’s cookie to be shared across subdomains (e.g., by setting domain=.eduskills.works) so we can check consent in GTM on our subdomain too?

We don’t need Finsweet to run on the subdomain — we just want GTM to be able to access the consent.

Steps to Reproduce

  1. Visit marketing website
  2. Accept the cookie consent
  3. Visit platform
  4. GTM doesn’t detect consent and treats the user as if no consent was given

GTM on the subdomain should be able to read the consent status from the cookie that was set on the main domain www.eduskills.works, without needing to ask again.

Consent appears to be stored in a way that’s not accessible from the subdomain — likely due to cookie domain scoping or storage in localStorage.

Hey @EduSkills! Yes! This is done within the app in the field shown below.

Hi Luis,

Thanks for your quick reply! I have done that yesterday, but for some reason the tag is still being blocked. I have checked the code and it is definitely isntalled, but it denies the consent eventhough on the main site I have accepted the consent.

        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('consent', 'default', {"ad_storage":"denied","analytics_storage":"denied"});
        gtag('config', 'GTM-WKMG4N9W', { 'debug_mode': false });
        

Do you see if I did anything wrong? This is the subdomain https://platform.eduskills.works