WordPress.org

Ready to get started?Download WordPress

Forums

EU Cookie Law Compliance
[resolved] google analytics (3 posts)

  1. shorif2000
    Member
    Posted 1 year ago #

    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/

  2. zafrira
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. shorif2000
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic