Title: slimstat_tracking_code
Last modified: August 30, 2016

---

# slimstat_tracking_code

 *  Resolved [Francesco](https://wordpress.org/support/users/francesco_5005/)
 * (@francesco_5005)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/slimstat_tracking_code/)
 * hi,
 * to avoid the creation of the cookie slimstat_tracking_code it’s necessary to 
   change two rows of code in slimstat.php . In short we’ve to modify this:
 * `$is_set_cookie = apply_filters('slimstat_set_visit_cookie', true);`
 * with this:
 * `$is_set_cookie = apply_filters('slimstat_set_visit_cookie', false);`
 * but after the plugin upgrade, the change is lost. I know that slimstat_tracking_code
   contains an hash to distinguish the different visitors of a web site, and it 
   can be useful if two or more visitors have the same IP.
 * But in my company they prefer to avoid the creation of the cookie without anonymizing
   the IP of the visitors, so I ask if it’s possibile, in the future versions of
   Slimstat, to have a checkbox to disable, once and for all, the slimstat_tracking_code.
 * [https://wordpress.org/plugins/wp-slimstat/](https://wordpress.org/plugins/wp-slimstat/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/slimstat_tracking_code/#post-6416527)
 * That’s exactly why apply_filters is there. To allow users to change that value
   based on their needs. Note that a switch (checkbox) would not offer the same 
   kind of flexibility, since your true/false could be based on many different conditions(
   username, ip address, etc). Long story short, you can simply code an add-on for
   Slimstat that does what you need. Please take a look at our knowledge base for
   more info on how to implement a Slimstat add-on, with code snippets and info 
   on all the hooks exposed by Slimstat.
 * Cheers
    Camu

Viewing 1 replies (of 1 total)

The topic ‘slimstat_tracking_code’ is closed to new replies.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/slimstat_tracking_code/#post-6416527)
 * Status: resolved