|
How To Set Up Google Analytics For Your Blog
Posted by Modestas J on 10 June 2012 02:08 PM
|
|
|
Google analytics is probably the most popular traffic tracking tool used to check what kind of visitors and how much of them is visiting our websites. By using WordPress as our website content management system, we can easily implement Google analytics for tracking our visitors. Here we will explain how to set up Google analytics for website or blog in three ways. First way. By registering at Google, we will get access to analytics. There we will be able to add our website and get tracking code in HTML format. Then we will need to put that code in our theme footer.php file right under </body> tag. We can also add Google analytics as a function. Just open theme function.php file for editing and put the following code <?phpadd_action('wp_footer', 'add_googleanalytics'); function add_googleanalytics() { ?> // Google Analytics code <?php } ?> Remember to put Google analytics code in the place where it says "// Google Analytics code". And the third way which we can use to set up Google analytics is by installing special plugin. We can simply go over the internet and search for Google analytics plugin for WordPress. Here is a few ones. http://wordpress.org/extend/plugins/google-analytics-for-wordpress/ http://wordpress.org/extend/plugins/google-analyticator/ Once we will have one of them installed, we will be able to get detailed statistics of our website or blog traffic. | |
|
|
|

