Only cookies from your added domains will be able to be set for the user. So; check your settings.
I see that your site is setting Google Analytics cookies before the user accepts. Are those domains set under “Always allow”?
Otherwise I guess you are using a cache plugin that is messing with you. Read more here: I’m using a cache plugin, and it seems to be interfere with this plugin.
Or maybe it’s your host, in that case, read here: The settings does not seem to have an effect. What do I do?.
@gzaffiro, how’s it going?
Nice, hope it gets sorted!
Hi @jonkastonka, my hosting provider does not do server caching.
In your first message you said
I see that your site is setting Google Analytics cookies before the user accepts. Are those domains set under “Always allow”?
My answer is no, these domains should not be always allowed, but only if they opt for them.
Is there a way that I can anticipate the “user accept/reject” in the HTML and would this solve the issue of blocking the cookies till the user decides what to accept? Thanks
-
This reply was modified 4 years, 6 months ago by
gzaffiro.
-
This reply was modified 4 years, 6 months ago by
gzaffiro.
-
This reply was modified 4 years, 6 months ago by
gzaffiro.
-
This reply was modified 4 years, 6 months ago by
gzaffiro.
My answer is no, these domains should not be always allowed, but only if they opt for them.
So; Not always. 😉 Put them in Analytics. Then they will be allowed if they opt for them.
Is there a way that I can anticipate the “user accept/reject” in the HTML and would this solve the issue of blocking the cookies till the user decides what to accept?
Some javascript like this may work. Experiment a little with it.
if (Cookies.get('cookies_and_content_security_policy')) {
cookies_and_content_security_policy = Cookies.get('cookies_and_content_security_policy');
if (cookies_and_content_security_policy.includes("statistics")) {
// do your stuff here
}
}
Thanks!
btw…
I translated the texts into Italian, such as instead of Statistics, the header is now Statistici. Do you think that this may affect the plugin work?
Not if you translated through po/mo-file