Comments (2)
you need to check in which domain are these cookies being set. The cookieconsent will try to delete cookies on the current domain (or subdomain) only. If you're on a subdomain but the cookies are being set on the main domain, you need to explicitly tell the cookieconsent the domain where they're being set.
for example if you are on test.mydomain.com
and the google analytics' cookies are set on mydomain.com
, you can specify on the cookie table, a domain
parameter like so:
{
col1: '^__utm',
col2: '.shop.demo.de',
col3: 'Google Analytics',
is_regex: true,
domain: "mydomain.com"
}
from cookieconsent.
works! thanks
from cookieconsent.
Related Issues (20)
- [Feat]: Return autoClear Cookies in Api Reference HOT 1
- [Bug]: CookieConsent v3 with Next.js HOT 2
- [Bug]: HOT 1
- [Bug]: Subdomain changes in the domain settings can lead to breaking the bar HOT 1
- [Docs]: update setCookieData examples with correct function
- [Feat]: Extend hideFromBots function HOT 4
- [Bug][a11y]: Opening the preference modal using keyboard navigation gives no feedback
- Add options to set accessible names HOT 4
- [Bug]: INP Problem HOT 2
- [Bug]: In translated / i18n projects, the config dialog does not work in the second language HOT 3
- [Feat]: Allow apply custom css to buttons HOT 4
- [Bug]: HOT 3
- [Bug]: Background entry animation ignored HOT 1
- [Bug]: Scripts with data-category are running before cookies are accepted HOT 4
- [Bug]: Clicking Save Preferences button rejects all services regardless of toggle state HOT 1
- [Bug]: The setCookieData() method can accidentally delete the lastConsentTimestamp field from the cc-cookie
- [Feat]: Expose the event that triggered onModalShow/onModalHide callback function
- [Bug]: Brave Browser block consent modal (import script.js) HOT 2
- How to display Font Awesome icons inside Cookie Consent? HOT 1
- [Feat]: callable method of removing cookies, like a `performAutoclearCookies` function HOT 3
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 cookieconsent.