Title: google analytics
Last modified: August 20, 2016

---

# google analytics

 *  Resolved [shorif2000](https://wordpress.org/support/users/shorif2000/)
 * (@shorif2000)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-63/)
 * Does this stop google analytics?
 * What would happen if user selects deny?
 * What would happen if i do not fill in the option in google analytics options
 * [http://wordpress.org/extend/plugins/cookie-compliance/](http://wordpress.org/extend/plugins/cookie-compliance/)

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

 *  Plugin Author [zafrira](https://wordpress.org/support/users/zafrira/)
 * (@zafrira)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-63/#post-3228571)
 * Hi Shorif2000,
 * thank you for your questions, here the answers:
 * Q: Does this stop google analytics?
    A: It does not stop anything, if you have
   an active Google Analytics plugin you should deactivate this for the plugin to
   it’s work. The plugin in general is meant as a tool to help you dividing the 
   actions taken when user allow or disallow cookie usage.
 * Q: What would happen if user selects deny?
    A: If the user hits deny all actions
   will be taken that you defined to be taken when the user does not allow the cookie
   usage. Based on your settings in the plugin it will not ask the user the same
   question again, or it will (as you choose to do so) show a bar on the bottom 
   that keeps asking for approval. The plugin is meant to be used as opt-in, this
   is as we know the most strict option that is implemented in the EU countries.
   Some EU countries adopted the opt-out option, in this case you can use the Deny
   function to remove allready set cookies.
 * Q: What would happen if i do not fill in the option in google analytics options
   
   A: It will not track your visits with Google Analytics. This is just an extra
   option of the plugin, so you do not have to hook the Google Analytics funtionallity
   yourself into the plugin. When you do activate the Google Analytics function 
   it will make you be able to do minimal tracking on your page views and visits,
   even when the user denied cookie usage. When activated and the user denied, it
   will not track returning visits as a cookie would be needed to track this, it
   will only track the session.
 * Hope the above do answer your questions.
    If not, or if you have additional questions,
   please let us know.
 * Kind regards
 *  Thread Starter [shorif2000](https://wordpress.org/support/users/shorif2000/)
 * (@shorif2000)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-63/#post-3228575)
 * I have the following in thematic/header.php the google analytics code
 *     ```
       <script type="text/javascript">
   
         var _gaq = _gaq || [];
         _gaq.push(['_setAccount', 'xxx']);
         _gaq.push(['_trackPageview']);
   
         (function() {
           var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
           ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
           var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
         })();
   
       </script>
       ```
   
 * What do I need to do to make sure this works?

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

The topic ‘google analytics’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cookie-compliance_0064bf.svg)
 * [EU Cookie Law Compliance](https://wordpress.org/plugins/cookie-compliance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-compliance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-compliance/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-compliance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-compliance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-compliance/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shorif2000](https://wordpress.org/support/users/shorif2000/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-63/#post-3228575)
 * Status: resolved