• Hi There

    I was just setting up a domain with google analytics and under the tracking info it says to paste this code into all page son my site:

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-40826235-1', 'thelearningroom.co.nz');
      ga('send', 'pageview');
    
    </script>

    Do I need to do this if I use your plugin?
    I have developed the site using Pagelines for WP. If i do need to put this code in do I paste it into the header script or at the top of each page in the code section of each page editor?

    Many thanks for your help

    https://www.ads-software.com/extend/plugins/google-analytics-for-wordpress/

Viewing 1 replies (of 1 total)
  • Hello!

    I’m not affiliated with the developer of this plugin, but thought I would take a shot at answering your question.

    Google Analytics will only track traffic for the pages on your site that have the script installed. That’s why Google advises you to paste it on all pages so that you will receive tracking info across your entire site.

    I haven’t used this particular plugin, but the plugin itself should make it unnecessary for you to manually add the GA tracking script to each page on your site, which is part of the beauty of using a plugin to do this. It should also automatically add the script to new pages.

    Once you enter your GA info using the plugin, you can confirm that your tracking script is installed by visiting one of your webpages, then right-click and choose View Page Source. Scroll down or use your browser’s “edit-find” function to look for your GA code (this is the part that starts with UA-). If it’s there, you should be good to go. Note that it may take up to 24 hours to start seeing traffic stats in your GA dashboard.

    Best of luck to you!

Viewing 1 replies (of 1 total)
  • The topic ‘Website tracking’ is closed to new replies.