-
AuthorPosts
-
April 22, 2021 at 12:28 am #1295893
Dear Kriesi Team,
I observed the following behavior: Cookie Handling is set to “User must accept and can opt-out, all selected by default” ->I get on the page and as soon as I am on the page the following cookies are set:
- _gat_gtag_UA_193670541_1
- _gid
- _ga
When the user doesn’t accept, the aviaCookieConsent will be added to the list. The google cookies are still set.
Thats nor right from my point of understanding the Telekommunikationsgesetz in Austria.
Please provide some help or fix for this issue.Thanks & Greets Tobias
- This topic was modified 3 years, 7 months ago by tobiastoifl.
April 23, 2021 at 2:10 pm #1296341Hey Tobias,
Thank you for the inquiry.
The google cookies are still set.
That is correct. The cookie will stay but further tracking from Google Analytics will not occur because once the user chose to block the tracker, the analytics script will no longer load. The remaining cookies in the local storage are not usable or has no effect from that point onward.
Best regards,
IsmaelApril 23, 2021 at 2:21 pm #1296344Hi,
thank you for the comment.
Is it complex to remove the cookie? Maybe in a future release ?
Just to be clear :)Greets Tobais
April 26, 2021 at 9:44 am #1296694Hi,
It should be possible, but for now you have to modify the functions-enfold.php file directly and around line 1109, look for this code.
window['ga-disable-{$UAID}'] = true;
Below, add this.
document.cookie = '_ga=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; document.cookie = '_gid=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; document.cookie = '_gat_gtag_UA_{$UAID}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
This should unset or remove the previous ga cookies.
Best regards,
IsmaelApril 26, 2021 at 11:06 am #1296726Hi & Thanks,
I updated the parent theme (was this right?) – no effect.if( ! allow_continue ) { // window['ga-disable-{$UAID}'] = true; //https://kriesi.at/support/topic/google-analytics-cookies-are-set-before-accepting-the-cookie-consent/#post-1296694 //CUSTOMIZED by KRIESI document.cookie = '_ga=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; document.cookie = '_gid=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; document.cookie = '_gat_gtag_UA_{$UAID}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; if( script_loaded.length > 0 ) { script_loaded.remove(); } } ... }
- This reply was modified 3 years, 7 months ago by tobiastoifl.
April 27, 2021 at 5:40 am #1296889Hi,
Thank you for the update.
Can we access the site? We would like to test the changes above. Please provide the WordPress details in the private field and please make sure that the Appearance > Editor panel is accessible.
Best regards,
IsmaelApril 27, 2021 at 8:15 am #1296922This reply has been marked as private.April 29, 2021 at 10:26 am #1297287Hi,
Thank you for the info.
We tried to access the site but it is not loading properly. Is the site down? Please disable the security plugin temporarily or configure the firewall. Or let us know when the site is up again.
Best regards,
IsmaelApril 29, 2021 at 10:45 am #1297293Hi, the username and password is correct.
I was able to connect from a never used remote host to the website.
Please check the copy&paste.Greets Tobias
April 30, 2021 at 5:51 am #1297460Hi,
Thank you for the info.
There is an extra “a” after the “be” in the site URL above, which is why it did not work previously.
How did you implement the Google Analytics? We checked the Enfold > Google Services > Google Analytics Tracking Code field, but it is empty. Please note that the privacy option can only detect and prevent the tracker if it is implemented through the Theme Options. If you are using a third party plugin to enable the tracker, the privacy options will not be able to block it.
Best regards,
IsmaelApril 30, 2021 at 8:59 am #1297491Oh thanks, sorry for the typo.
Ok I am using Google Site Kit. I will adopt it accordingly to work with this Plugin.Greets Tobias
May 3, 2021 at 6:33 am #1297884 -
AuthorPosts
- You must be logged in to reply to this topic.