Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
9 Jun 2012 at 19:33 UTC
Updated:
7 Feb 2019 at 13:43 UTC
Jump to comment: Most recent
Comments
Comment #1
Miszel commentedAre you expecting the cookie to be set right after clicking the accept button or another page (after page reload)?
Comment #2
paardje commentedAfter clicking the accept button (thats the law for a Dutch site)
Comment #3
Miszel commentedSo you need to use the onclick event:
Let me know if you need any further help.
Comment #4
paardje commentedI tried this and just tested it.
After clicking the acceptbutton, no cookies for google Anayltics are set. Although the alert works, but also worked in the other example!
Comment #5
Miszel commentedI need to see your code to be bale to help you.
Comment #6
paardje commentedThe code is exactly as above (or in the other example), but where you have the alert, i have de Google analytics code.
Comment #7
Miszel commentedThen it should work. I am not sure how else I can help you without seeing the code.
Comment #8
paardje commentedAs i said, i tried everything, GA doesn't work.
The latest i even tried
Comment #9
Miszel commentedPlease try to disable GA as describe at the bottom of this page: https://developers.google.com/analytics/devguides/collection/gajs/
Comment #10
paardje commentedOk i'll try that in the next few days.
Do you know if there is something like this for Google Adsense?
Comment #11
Miszel commentedNo, I don't but I am sure you can enable/disable adsense conditionally somehow. A couple of google results that may help you:
http://www.mobilefish.com/tutorials/adprograms/adprograms_quickguide_goo...
http://stackoverflow.com/questions/10876924/can-i-make-a-google-ad-displ...
Comment #12
Miszel commentedComment #12.0
Miszel commentedNew info
Comment #13
thestevelavigne commentedWhen I use:
if (Drupal.eu_cookie_compliance.hasAgreed()){
alert("Accepted earlier");
}
It gets triggered multiple times, almost with every page element load, and the alert shows 4, 5, 6 times.
Is there a way to prevent this?
Comment #14
svenryen commentedHi @Nugg!
Where did you place the script in question?
We have no code calling your scripts, so I have a hard time seeing how we can help :)
Comment #15
rop commented@Nugg have you implemented jquery.once ?
see: https://www.drupal.org/docs/8/api/javascript-api/javascript-api-overview
Comment #16
jbjb commentedHi Marcin,
I hope you're well.
I'm having an issue with a client site, on Drupal, and their Google Analytics config. I'm going through a process of elimination to try and determine the cause.
For each page load a new Google Analytics sessions begins / clientID is reset. This breaks all tracking within the site and renders attribution for paid traffic useless.
The client is using the EU Cookie Compliance tool. Is this expected behaviour if the user opts out or ignores the pop up? If the Google Analytics cookie is being deleted, it could cause issues as described above. Is there any case where the tool can be misconfigured and prevent GA from tracking regardless of the option selected in the popup (note, I've tested by ignoring the popup, opting in and opting out but I see the same issue).
Many thanks
J