Title: Website tracking
Last modified: August 21, 2016

---

# Website tracking

 *  [stimuluscer](https://wordpress.org/support/users/stimuluscer/)
 * (@stimuluscer)
 * [13 years ago](https://wordpress.org/support/topic/website-tracking/)
 * 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
 * [http://wordpress.org/extend/plugins/google-analytics-for-wordpress/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

Viewing 1 replies (of 1 total)

 *  [wendola](https://wordpress.org/support/users/wendola/)
 * (@wendola)
 * [13 years ago](https://wordpress.org/support/topic/website-tracking/#post-3741116)
 * 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.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [Header Script](https://wordpress.org/support/topic-tag/header-script/)

 * 1 reply
 * 2 participants
 * Last reply from: [wendola](https://wordpress.org/support/users/wendola/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/website-tracking/#post-3741116)
 * Status: not resolved