Comments (4)
Hi @msollmann,
are these HTML cookies?
Can you share the configuration for the tracking item? Is htmlCookieRemovalPattern
involved?
This is the last change AFAIK in that area: 26db500
I would not want document.cookie
but rather stick with the js-cookie library (Cookies.remove(...)
).
Can you please try with that in your browser's JavaScript console?
Maybe we need to use Cookies.remove('name', { path: '' })
or other parameters?
from extension-cookieman.
Hi @jonaseberle,
I got the same issue as @msollmann and replacing Cookies.remove(itemKey)
with Cookies.remove(itemKey, { path: '' })
did not work for me.
Some cookies like _gid, _ga, or _gcl_au were still present in this case, but
Cookies.remove(itemKey, { path: '', domain: '.' + document.location.host })
is working for me.
from extension-cookieman.
That might be specific with Google Cookies. I've seen it even that way:
domain: www.xxx.yy
cookie domain: .xxx.yy
Deleting _gat
worked for me with these commands (all work on /
as well as on a subpage /subpage
):
Cookies.remove('_gat', {domain: '.xxx.yy'})
Cookies.remove('_gat', {path: '/', domain: '.xxx.yy'})
Cookies.remove('_gat', {path: '', domain: '.xxx.yy'})
The path/domain settings of cookies are (to my knowledge) not readable in JavaScript so we will have to try several Cookies.remove(...)
s.
So I suggest:
fullDomain = document.location.host # www.xxx.yy
secondLevelDomain = fullDomain.split('.').slice(-2).join('.') # xxx.yy
Cookies.remove(itemKey)
Cookies.remove(itemKey, {path: ''})
Cookies.remove(itemKey, {path: '', domain: fullDomain})
Cookies.remove(itemKey, {path: '', domain: '.' + secondLevelDomain}))
What do you think?
from extension-cookieman.
Yeah, you are right it's not possible to get the metadata of a cookie. I think this solution is fair enough :).
from extension-cookieman.
Related Issues (20)
- typo3/cms-composer-installers:^4 compatibility will need some work HOT 4
- Add test if the modal window can be displayed HOT 7
- group.respectDnt = 0 is not respected HOT 4
- Too few arguments to function Dmind\Cookieman\DataProcessing\TypoScriptSettingsProcessor::__construct(), 0 passed in HOT 2
- EditorConfig sets wrong indent size HOT 5
- Logo in modal header HOT 2
- Class btn-small doesn't exist in Bootstrap 3
- Google Consent Mode Integration HOT 2
- CookieConsent cookie expires only after 1 week HOT 4
- Accessibility: Fix headline hierarchie in modal HOT 1
- TYPO3 12 compatibility HOT 18
- htmlCookieRemovalPattern for GA4 tag HOT 3
- Could it be possible to include bootstrap js in extension HOT 1
- Option to refresh page if user accept all cookies HOT 2
- Cookies get set on page refresh despite preferences HOT 2
- Setting: Open with a time delay HOT 4
- Update Google trackingObjects, lifespan etc. from official source HOT 1
- vanilla JavaScript is the future HOT 5
- Is there a way to link local/extension script-files via inject()? HOT 1
- Condition parse error HOT 1
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 extension-cookieman.