Title: Google Analytics stopped working
Last modified: August 21, 2016

---

# Google Analytics stopped working

 *  Resolved [artystyc](https://wordpress.org/support/users/artystyc/)
 * (@artystyc)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-stopped-working-1/)
 * Hello,
 * This is a very useful plugin. However, I have some problems… I have installed
   it and then added all of the un-register actions for tracking-cookies. After 
   that, I noticed that no matter what the users’ choice was when the alert appeared,
   but they were not tracked anymore. Since then, my Analytics reports show 0 visitors.
   I have tried myself visiting the website and allowing all cookies, but no changes.
 * I have also tried deactivating and deleting the plugin, and then re-installing
   it again but still nothing…
    I have also deactivated and deleted the plugin that
   I used for Analytics but that did not work neither. Finally, I manually added
   the code to the header.php but the result was the same.
 * So, has this issue something to do with the un-register actions mentioned above?
   I can’t find out if any code has been added to other files outside of the plugin’s
   folder. If this is the case, where and how can I fix it?
 * Please help! I don’t know what else to do. I do really want to use this plugin
   and get it to work properly with Analytics.
 * Thank you 🙂
 * [http://wordpress.org/plugins/cookie-opt-in/](http://wordpress.org/plugins/cookie-opt-in/)

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

 *  Plugin Author [Internetbureau Clearsite](https://wordpress.org/support/users/clearsite/)
 * (@clearsite)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-stopped-working-1/#post-4365858)
 * There are two possibilities;
 * 1. The cookie plugin fails,
    2. Your implementation is wrong,
 * please try to deactivate (or even delete) the cookie plugin and check you analytics.
   To be sure; wait 2 days and check google, but the “real-time” option of GA should
   suffice.
 * if you still do not get any hits (and you’re sure that’s not because of filters,
   or a misconfiguration of the GA plugin, then it’s probably the way you use the
   Cookie plugin.
 * It’s vague, I know, but without any code or even a web address, there is no way
   for me to determine what the problem is.
 * When all is installed and it “should work”, open your site, be not logged in,
   accept cookies, refresh the page, check the source. If you see the GA javascript
   code, then the problem is most likely not in this plugin.
 * Again, without more information, I cannot be sure.
 * “I can’t find out if any code has been added to other files outside of the plugin’s
   folder”
    Sorry, what?? There is only one way code can be added to other files,
   especially outside the plugins folder, and that is when you did it yourself. 
   Since you ask, there’s probably not. This plugin does not change any files on
   it’s own.
 *  Thread Starter [artystyc](https://wordpress.org/support/users/artystyc/)
 * (@artystyc)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-stopped-working-1/#post-4365940)
 * Thank you for your answer. Sorry if the question you quoted was kind of “offensive”,
   I did not mean to say that your plugin is doing that. I’m kind of a “newbie”,
   especially on what concerns to coding.
 * I have followed your advice and it works like a charm now. It does what it promises,
   in fact if the user doesn’t accept tracking cookies (the only kind of cookies
   which I have tried this plugin with), the GA cookie won’t be installed.
 * Again, thanks for the plugin and your support!
 *  Plugin Author [Internetbureau Clearsite](https://wordpress.org/support/users/clearsite/)
 * (@clearsite)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-stopped-working-1/#post-4365941)
 * Hi Artystyc, please don’t get me wrong; no offence was taken, don’t worry 🙂
 * I am – however – very interested on what the problem was. But reading “it works”
   is good enough for me 🙂

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

The topic ‘Google Analytics stopped working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cookie-opt-in_303030.svg)
 * [Cookie Opt In](https://wordpress.org/plugins/cookie-opt-in/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-opt-in/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-opt-in/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-opt-in/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-opt-in/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-opt-in/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Internetbureau Clearsite](https://wordpress.org/support/users/clearsite/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-stopped-working-1/#post-4365941)
 * Status: resolved