Please read the article on my blog on how to setup a cookie notice. The plugin that I made CAOS compatible with already supports adding an opt-out button, by inserting the shortcode [delete_link] inside your cookie template!
Thread Starter
sneakz
(@sneakz)
Hi Daan,
That was really helpful. Thanks a lot!
Thread Starter
sneakz
(@sneakz)
Hi,
Edit: The shortcode [delete_link] doesn’t seem to work on the cookie template. I did use the same GDPR Cookie plugin on your blog but it didn’t work. I’m currently using CAOS v.1.55
https://ww.wp.xz.cn/plugins/cookie-law-info/
The code [delete_cookies] also doesn’t remove _gat on the browser cookies.
-
This reply was modified 7 years, 11 months ago by
sneakz.
It’s correct that it doesn’t delete those cookies. It deletes the cookie in which the user’s consent is given, which triggers the ga_disable-function in your Analytics tracking code. This blocks the cookie from sending any data to Analytics.
Thread Starter
sneakz
(@sneakz)
Hi,
I did try to accept/reject alongside with realtime analytics but it is still tracking the activity. Note that I’m the only active user accessing the test site.
Could you please try to debug or replicate the issue?
Thank you.
I just noticed there’s a bug in my code. :S Sorry!
I’ll release an update soon!
The update I just released should fix this bug!
Thread Starter
sneakz
(@sneakz)
Hi Dan,
It is indeed working. Thanks for the update!