- Issue created by @nataliaalves
- 🇩🇪Germany VISIOS
I'm experiencing the same problem. Updated to 4.0.2 version of the google_analytics module and now the consent is not working anymore. Cookies are set without consent.
This is a blocker because under GDPR we have to stop collecting stats for the moment. As the legacy GA service are shutting down end of the month only few days are left.
Is anybody able to fix this submodule? Thanks!
- 🇧🇪Belgium tijsdeboeck Antwerp 🇧🇪 🇪🇺 🌎
We can also confirm this behaviour. It's indeed a big issue under GDPR.
We were able to work around this by using cookies_gtag in combination with (COOKiES Google Tag Manager Consent)[ https://www.drupal.org/sandbox/gresko8/3267405] → (sandbox module). That allowed us to use Google Consent Mode through Tag Manager. Altough it's a sandbox module, it works perfectly for what we needed.
Maybe Cookies should look into only supporting google_tag 2.x for Cookies, as this is the recommended module for Google Analytics from now on... Maybe in combination with datalayer/consent mode support...
- 🇩🇪Germany Anybody Porta Westfalica
Thanks guys, happy to review a MR. But we have to make sure it doesn't break old GA.
Best would be to have tests to ensure both works, but that shouldn't be a blocker. I see the importance, but won't have the time to work on this myself. - 🇧🇪Belgium tijsdeboeck Antwerp 🇧🇪 🇪🇺 🌎
We'll try to work on this soon, as we need to support this on multiple projects. As soon as we have something working we'll create an MR 👍
- 🇬🇧United Kingdom alexharries
Just to clarify the link in #4 should be:
https://www.drupal.org/sandbox/gresko8/3267405 →
Downloading and testing now - many thanks.
/Al
- 🇧🇪Belgium tijsdeboeck Antwerp 🇧🇪 🇪🇺 🌎
@alexharries, woops, thanks for spotting that - I've updated my comment.
- 🇩🇪Germany VISIOS
Thanks guys for the update on this issue.
In the meantime I tried cookies_gtag but I get the same problem: cookies for google tag manager are set without consent. Also tried this in conjunction with the sandbox module but no luck.
What a mess with google analytics and tag manager. Not blaming you guys, i really like COOKies. I have to inform my client that with this approach, statistics with google is just not working right now. I'm also running domain access which makes this somehow double hard.
Hopefully @tijsdeboeck can fix a least cookies_ga.
- 🇩🇪Germany Anybody Porta Westfalica
Any community plans here to prepare a MR? The maintainers are very busy currently, so that would speed things up a lot.
- Assigned to Grevil
- 🇩🇪Germany Grevil
Seems like the sandbox module is currently preferred. 😅
I'll dig into it.
- 🇩🇪Germany Grevil
Might already work, might not, I'll finish this tomorrow and adjust the tests accordingly (if needed).
- last update
about 1 year ago 87 pass, 2 fail - @grevil opened merge request.
- Status changed to Needs review
about 1 year ago 3:03pm 26 September 2023 - Status changed to Needs work
about 1 year ago 3:55pm 26 September 2023 - 🇩🇪Germany Anybody Porta Westfalica
2 failing tests, code looks promising so far! :)
- last update
about 1 year ago 88 pass - Status changed to Needs review
about 1 year ago 8:28am 27 September 2023 - 🇩🇪Germany Grevil
Alright, all done!
Tests are green locally and everything works as expected! Please review! 😊
- Issue was unassigned.
- Assigned to Grevil
- Status changed to Needs work
about 1 year ago 9:33am 27 September 2023 - Status changed to Needs review
about 1 year ago 10:23am 27 September 2023 - Status changed to Needs work
about 1 year ago 11:18am 27 September 2023 - Status changed to Needs review
about 1 year ago 11:44am 27 September 2023 - Issue was unassigned.
- Status changed to RTBC
about 1 year ago 12:22pm 27 September 2023 - 🇩🇪Germany Anybody Porta Westfalica
Nice! Let's merge this into dev for easier testing!
@tijsdeboeck & @VISIOS could you please try the latest 1.2.x-dev version and report, if it fixes the issues?
If yes, we'll tag a new stable release! - Status changed to Fixed
about 1 year ago 12:23pm 27 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.