I’m troubleshooting a Consent Mode issue on a WordPress website
-
I’m troubleshooting a Consent Mode issue on a WordPress website:
Site Kit and GA4 are connected correctly and Analytics works, but when Site Kit Consent Mode is enabled, Analytics consent does not appear to be applied correctly after the visitor accepts cookies.
Using a fresh Incognito session and Google Tag Assistant:
Before consent I correctly see:
analytics_storage = deniedAfter clicking Accept All in CookieYes, CookieYes correctly records Analytics consent.
I have confirmed:
cookieyes-consentcontainsanalytics:yesand:
wp_consent_statistics = allowHowever, Site Kit/Google does not then reliably show:
analytics_storage = grantedIn our tests, no new Consent Update appeared after accepting cookies, and GA4 did not record normal
page_viewevents after consent.I also tested caching as a possible cause:
- purged SiteGround cache
- temporarily disabled Dynamic Caching
- tested in completely fresh Incognito sessions
The problem remained.
If Site Kit Consent Mode is not managing the consent flow, GA4 itself and the Site Kit Analytics connection appear to function normally.
Could you please advise whether this is a known issue with:
CookieYes → WP Consent API → Site Kit Consent Mode
and whether Site Kit should automatically read and restore:
wp_consent_statistics = allowon each page load?
I’m specifically trying to establish why the visitor has explicitly granted Analytics consent but
analytics_storageis not being updated/restored accordingly.Many thanks,
Mark
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.