vue-gtag
vue-gtag copied to clipboard
Reading cookie in cross-site context will be blocked in future Chrome versions
Description
New cookie cross-site warning in latest Chrome versions (currently 120.0.6099.111). The reference documentation https://developers.google.com/privacy-sandbox/3pcd#prepare_for_the_third-party_cookie_phase_out
Environment
Both pre-built bundle and development run using Vite.
NPM versions:
[email protected]
+-- @vitejs/[email protected]
| `-- [email protected] deduped
+-- [email protected]
| +-- @css-render/[email protected]
| +-- [email protected]
| | `-- [email protected] deduped
| +-- [email protected]
| +-- [email protected] deduped
| `-- [email protected]
| `-- [email protected] deduped
+-- [email protected]
| `-- [email protected] deduped
+-- [email protected]
| `-- [email protected] deduped
+-- [email protected]
| `-- [email protected] deduped
+-- [email protected]
| `-- @vue/[email protected]
| `-- [email protected] deduped
+-- [email protected]
| `-- [email protected] deduped
`-- [email protected]
`-- [email protected] deduped
Reproducible Demo in case of a bug report
The live site with reproducible issue https://reader.dev.andyi95.com/
The plugin usage code in repo https://github.com/andyi95/reading-vue/blob/7cd56a8a5b816b3607fe070697d44b5066450b85/frontend/src/main.js#L19
@andyi95 Looks like you're getting this from the ar_debug
cookie, which in my case was indeed due to using the Google Tag Assistant. Deleting the cookie got rid of that particular message:
https://support.google.com/analytics/thread/268576057/google-analytics-cookies-issue?hl=en
You're absolutely right - checking on a "clean" Chrome instance didn't show any messages related to the cookies. Thanks a lot!