Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Woocommerce events 'begin_checkout' etc. trigger before cookie_consent_update with CookieYes #380

Open
Sapper-Morton opened this issue Nov 28, 2024 · 2 comments

Comments

@Sapper-Morton
Copy link

We're using CookieYes for consent. When checking in tag manager, I can see that for some reason WC trigger events before cookie_consent_update has even loaded. Is there a way to fix this?

image

@Sapper-Morton
Copy link
Author

p.s. this is about the stable version and we're running the GTM from custom script. This is kind of serious situation because the woocommerce events happening before cookie_consent_update breaches GDPR.

@duracelltomi
Copy link
Owner

  1. Have you tried to use a trigger group to fire tracking after both begin_checkout an cookie_consent_update was fired?
  2. If you are allowed to implement advanced consent mode that means cookieless pings can be send to GA4, they will be used to add modelled data into your reports
  3. If you use the wait_for_update parameter in Consent Mode (also available with CookieYes as far as I know) your GA4 event hits will not be sent until an Consent Update command fires or until the specified time in ms passes. This can also solve your issue as with that, on page loads where consent is already present, CookieYes can load this stored consent, set CoMo flags and GA4 will only fire events after that update command
  4. I can update the plugin to delay a but those events however this will be still a race condition as there will be no direct connection between firing the ecommerce event and CookieYes firing the CoMo update command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants