Pages

Tuesday, 7 April 2015

How to install Google Analytics on a Blogger blog

I) Creating an account with Google Analytics

  1. Go to Google Analytics, click the Sign-Up Now link on top right corner of the page and sign in to your Google Account.
  2. On the next page click the Sign up button. 
  3. Next supply all the necessary details -account name, blog URL you wish to track, time zone, data sharing preferences, and your country or territory.create google analytics account
  4. Read the terms of service and  tick the “Yes, I agree to the above terms and conditions” checkbox.
  5. Click Create Account button and you’ll be taken to Tracking Code Configuration tab.
  6. The next step is to find the Web Property ID (a.k.a UA number) -a unique ID given to the account you just created. Disregard all other items in this tab, the only thing you need is the UA number.GA web property id UA number
  7. Copy the UA number as you’ll need to paste it later on.

II) Installing Google Analytics on your blog

This is a two-step process. First you need to register the Web Property ID with Blogger, and then import the tracking code into your template.
  • Adding Google Analytics ID to your blog
    1. If you are using the new Blogger interface, click the dropdown menu next to the name of the blog you wish to track and navigate to Settings > Other > Google Analytics. (For old interface, go to Settings > Basic > Google Analytics Web Property ID).GA web property ID in blogger
    2. Paste in the UA number into the Google Analytics Web Property ID text box. 
    3. Click Save Settings.
  • Adding your tracking code
    The following <include> tag will import your GA tracking code into your blog:
    <b:include name='google-analytics' data='blog'/>
    If you are using a latest Layout or Dynamic Views template from Template Designer gallery, you can skip the following steps because it already has the<include>  tag built-in. The same applies to mobile templates.
    But if you are using an older Layout template or a third party template you might need to add it into your template manually. Here’s how:
    1. Go to Template > Edit HTML  (for old interface it’s Design > Edit HTML) and locate the </body> tag.
    2. Insert the code right above the tag (if the code isn’t already there).
    3. Save your template.
It could take 24 hours before your first data to appear in your account. This is because Google Analytics updates reports every 24 hours. Come back to Google Analytics Dashboard the next day and if everything is in order you will see your stats!

No comments:

Post a Comment