- Issue created by @fotisp
- š³š±Netherlands roaldnel
Thank you for your input fotisp. If you read the motivation behind the reversal of the code changes here - https://www.drupal.org/project/cookiebot_gtm/issues/3381424 š Reordering of script loading (v1.0.9) breaks Google Analytics Fixed , you should note that the patches introduced issues with Google Analytics (GA). Unless we can implement these changes in a way that does not negatively impact GA we cannot re-introduce this into the production code. If you have suggestions to adapt the previous patch in a way that can accommodate GA then you are welcome to post it here. Still, this is a good ticket that we can use to explore options on how to resolve this issue.
- Status changed to Needs work
11 months ago 9:58am 26 January 2024 - Issue was unassigned.
- Status changed to Postponed: needs info
11 months ago 10:39am 26 January 2024 - š¬š·Greece fotisp
Thank you for the message.
Can you give me more information about what problems it is causing?
On 2 sites where I run the module with the patch,
I see the Google Analytics counting correctly if the user clicks 'allow statistics cookies' in Cookiebot.
Īf they don't give consent for statistics, the GA cookies are not set, and Google Analytics doesn't function.
Isn't this what we want?
Am I missing something else?
Thanks - Assigned to roaldnel
- Status changed to Needs review
10 months ago 10:44am 16 February 2024 - š³š±Netherlands roaldnel
Thank you for your feedback, this really helps. I have created an improved patch that strips out the changes that were introduced in v1.0.8 (see https://www.drupal.org/project/cookiebot_gtm/issues/3367888 š GTM needs to load before the Cookiebot script Fixed ) so this specific feature can be tested in isolation. I also added an enabled / disabled selector to the config form that way it can be turned off if need be. The patch is attached.
The main issue was that our client was complaining that their GTM stats were not working as expected. Until now I have not had too much time to investigate this in too much detail but I suspect that the more strict blocking was functioning as it should but it was just not the expected result. That being said, I tend to agree with you that it does what you would expect. Regardless, now that the functionality can easily be disabled I think we can give it another go so let's see how this patch fares and hopefully we can include it in a release asap.
- last update
10 months ago Build Successful - š³š±Netherlands roaldnel
I have updated the patch to update the script to Google Consent Mode v2 (see https://www.cookiebot.com/en/google-consent-mode-v2-integration/).
- š¬š·Greece fotisp
Hello, patch #10 seams to work great.
Did not had the chance to check each option (ad_storage, analytics_storage) but
the "Enable Google Consent mode" works fine with a GTM container with GA4 tracking.
Thanks -
roaldnel ā
committed 44e0405d on 1.0.x
Issue #3408156 by roaldnel, fotisp: RE-Enable Google Consent Mode...
-
roaldnel ā
committed 44e0405d on 1.0.x
- Status changed to RTBC
9 months ago 9:33am 29 March 2024 - š³š±Netherlands roaldnel
We have tested this patch on a variety of projects and based on the feedback from fotisp this is now considered to have been reviewed and tested.
- Status changed to Fixed
9 months ago 9:34am 29 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.