Question about GA4 and GDPR #3431
-
Summary (*)I have noticed the addition for GA4 but I'm questioning the usability in EU domain due to GDPR and also other similar privacy protection laws. Currently the way I see it the solution is based on the assumption that everything is read server-side and rendered however if we were to implement a cookie consent solution that's not relying on GTM (for gtag implementations for example) then any FPC solution would basically break these blocks in the sense that you can't really read the consent choice of the user as the page is rendered. You can't really read cookies for consent on php side and expect things to function with FPC on because your code won't be really executed. Shouldn't this be more integrated with a frontend solution that can actually read dynamic values from the cookie consent frameworks instead of just rendering the scripts directly on html ? Examples (*)Proposed solution |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
the way cookiebot works is that you have a FPC shouldn't be an issue too unless unless some javascript code modify the page in such a way that the pre-rendered scripts are then wrong, but I've never encountered any situation like this. also, the way it works now is the same way it was working before, with ga3 etc. |
Beta Was this translation helpful? Give feedback.
-
This is exactly the reason I had to backport this feature on our shop. We have a cookie banner, which the customer must answer if not set. Theres options for marketing cookies etc. Only when marketing cookies are wanted, a js function is executed and that GA4 stuff can execute. The server doesnt decide, the frontend does. The backend still can send details about the GA4 stuff to the frontend, but it will not execute when marketing cookies arent allowed. The issue now for OM is, that iirc no cookie banner solution exists in the core, so it will excute no matter what the customer chosen in a 3rd party cookie banner etc. a) overwrite the ga.phtml file and come up with your own solution on when to execute the GA related code (ie. behind a cookiebanner) |
Beta Was this translation helpful? Give feedback.
-
I see this looks pretty clear now. I have a question about further customizing this solution but I'll open a new discussion :) Thanks for the input guys |
Beta Was this translation helpful? Give feedback.
-
so I might not be fully up2date and reliable, but there are 3 main parts I think. you need a privacy policy on your website explaining which data you collect and for what. not sure how it is currently, but in the past for germany there was for germany an "annonymize" parameter, which cut of a part of the IP, which lead to less reliable numbers, but made it conform with avoiding identification. cookie consent is relevant for anything which sets a cookie, or even just does a request to the outside which might set a cookie. |
Beta Was this translation helpful? Give feedback.
so I might not be fully up2date and reliable, but there are 3 main parts I think.
you need a privacy policy on your website explaining which data you collect and for what.
not sure how it is currently, but in the past for germany there was for germany an "annonymize" parameter, which cut of a part of the IP, which lead to less reliable numbers, but made it conform with avoiding identification.
cookie consent is relevant for anything which sets a cookie, or even just does a request to the outside which might set a cookie.
For GA in the previous edition the cookie was set when loading the JS file, so the solution was, to have all the tracking code not break the page, when GA is not…