- Issue created by @reszli
- @reszli opened merge request.
- Status changed to Needs review
over 1 year ago 7:51am 3 May 2023 - Status changed to Fixed
over 1 year ago 12:00pm 9 May 2023 Automatically closed - issue fixed for 2 weeks with no activity.
Currently the module pushes a data to the dataLayer whenever the cookie preferences change (when you click "save" in the cookie module or when you click "only accept necessary cookies") AND whenever a new page is loaded. (see attached screenshot 1 for what is currently pushed)
This concept is great, but the way things are pushed to the dataLayer need to be updated because due to the current technical setup we can't use that dataLayer information in GTM.
What we need: a separate "event" needs to be pushed to the dataLayer for EACH category that is ACCEPTED + a general "cookie_consent_update" events needs to be pushed to the dataLayer on each pageview and each time preferences are saved/changed. This is also how external solutions like "cookiebot" work (see a live demo of this on showtex.com).
Example:
create MR with changes to the JS hooks
Fixed
2.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.