Repository navigation
Conversation
cookies.js reads a missing window.isEU as non-EU and sends a granted consent default, so a blocked or failed location.js let analytics and Clarity run before an EU visitor agreed.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Follow-up to #113 (WEB-4715), from CodeRabbit's review of gooddata/gdc-cloud-docs#1955.
If
location.jsis blocked or fails to load,window.isEUis undefined.cookies.jstreats that as a non-EU visitor and sends a granted consent default, so_gacookies and Clarity ran before an EU visitor agreed.gtm.htmlnow setswindow.isEU = truewhenlocation.jsdid not define it, so the visitor gets the EU banner and consent stays denied until they accept.Tested with the built gdc-cloud-docs output on the live Cloud docs, using the real
cookies.jsand Tag Manager container:location.jsblocked_gaset, Clarity loads_ga, no Clarity, EU banner🤖 Generated with Claude Code
Summary by CodeRabbit