Comments (3)
This package doesn't prevent setting any cookies, this just offers you a cookie bar, the rest of the logic has to be implemented by the package consumer.
So I have no explanation why it would be different in the mentioned browsers, I do however know for sure that the cookie-bar doesn't actually stop cookies. (from looking at the code obviously, and issue #58 )
from react-cookie-consent.
I see. I am using next.js and in my _document.js Head section i do this:
{/* Global Site Tag (gtag.js) - Google Analytics */}
<script
async
src={`https://www.googletagmanager.com/gtag/js?id=${GA_TRACKING_ID}`}
/>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
`}}
I guess this is the culprit. I don't know why chrome does not set the cookie but Edge does. Can I somehow set it based on a condition - e.g. the CookieConsent - cookie is set and true?
from react-cookie-consent.
I have no experience with next.js nor the google tag manager so I can't be of much help.
If I were you I'd open a ticket on a google tag manager related forum.
Sorry, best of luck,
Rick
from react-cookie-consent.
Related Issues (20)
- Unable to set domain via extraCookieOptions. Test suite failing with error message - Cookie has domain set to the public suffix "localhost" which is a special use domain HOT 2
- Cannot apply css for style -> bottom HOT 2
- Is there "agree" method without click agree using method HOT 1
- 'CookieConsent' cannot be used as a JSX component HOT 5
- decline Button Component HOT 3
- In Production Mode, myAwasumeCokkies2 is not storing in Cookies Storage Why? HOT 2
- HttpOnly option on Cookie settings HOT 2
- How to Close the CookieConsent window with onAccept HOT 1
- Consent Modal disappears when I scroll down HOT 4
- Consent Modal disappears when I scroll down HOT 2
- style margin bottom and bottom don't work HOT 2
- Update documentation to show support for custom cookie name HOT 2
- Q: Any docs on how to use with docusaurus? HOT 2
- How to detect cookies HOT 1
- component is suspended HOT 1
- `getCookieConsentValue` returns always undefined using custom cookie name HOT 4
- Type prop definition has too many required fields
- TypeError: Cannot read properties of undefined (reading 'prototype') HOT 7
- React Cookie Consent error when imported to a React component Next14
- I got error when I install package in nextjs 13 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-cookie-consent.