jasonc310771 Posted June 30, 2023 Share Posted June 30, 2023 I have the following PHP code that links my site to Google Analytics but get errors viewing Console in my browser. echo("<!-- Google Analytics GA4 --><!-- Google tag (gtag.js) --><script defer src='https://www.googletagmanager.com/gtag/js?id=" . googleAnalyticsGA4ID . "'></script> <script defer>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date());gtag('config', '" . googleAnalyticsGA4ID . "', { cookie_flags: 'max-age=7200;secure;SameSite=None'});</script>"); Cookie “PHPSESSID” does not have a proper “SameSite” attribute value. How do I fix this ? TIA Quote Link to comment Share on other sites More sharing options...
requinix Posted June 30, 2023 Share Posted June 30, 2023 I don't see anything in this code that has to do with your PHPSESSID. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.