vue-gtag icon indicating copy to clipboard operation
vue-gtag copied to clipboard

Reading cookie in cross-site context will be blocked in future Chrome versions

Open andyi95 opened this issue 1 year ago • 1 comments

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

Screenshot_31

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 avatar Dec 22 '23 11:12 andyi95

@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

halfhp avatar Jun 11 '24 12:06 halfhp

You're absolutely right - checking on a "clean" Chrome instance didn't show any messages related to the cookies. Thanks a lot!

Screenshot_742

andyi95 avatar Jul 05 '24 07:07 andyi95