Title: Opt out analytics
Last modified: June 13, 2018

---

# Opt out analytics

 *  Resolved [sneakz](https://wordpress.org/support/users/sneakz/)
 * (@sneakz)
 * [8 years ago](https://wordpress.org/support/topic/opt-out-analytics/)
 * Hi Daan!
 * Just wondering if you have plans to implement Opt-out Google Analytics anytime
   soon?
    Btw, awesome GDPR compliant update! Keep it up!

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [8 years ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10393954)
 * Please read the article on my blog on [how to setup a cookie notice](https://dev.daanvandenbergh.com/wordpress/analytics-gdpr-caos/).
   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!
    -  This reply was modified 8 years ago by [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/).
      Reason: Added link
 *  Thread Starter [sneakz](https://wordpress.org/support/users/sneakz/)
 * (@sneakz)
 * [8 years ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10397692)
 * Hi Daan,
 * That was really helpful. Thanks a lot!
 *  Thread Starter [sneakz](https://wordpress.org/support/users/sneakz/)
 * (@sneakz)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10409473)
 * 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://wordpress.org/plugins/cookie-law-info/](https://wordpress.org/plugins/cookie-law-info/)
 * The code [delete_cookies] also doesn’t remove _gat on the browser cookies.
    -  This reply was modified 7 years, 12 months ago by [sneakz](https://wordpress.org/support/users/sneakz/).
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10410436)
 * 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](https://wordpress.org/support/users/sneakz/)
 * (@sneakz)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10417712)
 * 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.
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10417718)
 * I just noticed there’s a bug in my code. :S Sorry!
 * I’ll release an update soon!
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10424994)
 * The update I just released should fix this bug!
 *  Thread Starter [sneakz](https://wordpress.org/support/users/sneakz/)
 * (@sneakz)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10425057)
 * Hi Dan,
 * It is indeed working. Thanks for the update!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Opt out analytics’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [sneakz](https://wordpress.org/support/users/sneakz/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/opt-out-analytics/#post-10425057)
 * Status: resolved