How to properly install Google analytics tracking code in your blog. (blogger, wordpress, personally hosted blog)

Google analytics is one of the best programs to track stats of your website. It takes not time sign up with them and the tracking is accurate. It also helps understanding your blog’s audience in a better way. Unlike your blogger stats, which only shows pages view, Google analytics gives you detailed information of your blog’s audience, like your daily visitors (Note visitors should not be confused with pages view, both are completely different. Visitors are the unique people who land on your blog. One singe visitor can read 10 pages on your blog, so pages view count will be 10 while visitor is just one.), Your daily unique visitors, average time spent on your blog, from which part of the world your visitors are from, what are the top keywords from which your blog is reached and many more.

Some people have a common misunderstanding that Google analytics is implemented by default on a blogger blog. It is not true; the statistics you get from blogger is from blogger itself not from Google analytics. It is very important to install the tracking code properly else you will not be able to track.

To install Google analytics on your blog is really simple.

First, you need to sign up for Google analytics from www.google.com/analytics. You can use your
existing G mail id which you are using for other Google services like G mail.

Fill in the details like your root folder name under which all your websites will be managed and set up at least one property to begin with. Here property refers to your blogs. You can track as many blogs/websites you want with a single Google analytics account. Enter in details like- your website name, website address, category, time zone etc. Click “start tracking”, accept the terms (read them also) and your first property has been set up.
Now we need to install the Google analytics code on our blog. You will get unique code for every website and you need to install this code in your blog. Installing code simply means copying and pasting a particular code in a specific area of your HTML files of your blog.

So first we need to get our tracking code and ID. For this, log in to your Google analytics account. Go to “Admin” panel (from top options). Select your property> tracking info> Tracking code.
Now if you are having your blog on blogger which is a blogging platform by Google itself, then implementing the code will become easier for you. As you know blogger is completely integrated with all other Google products and can be easily linked with them (that’s the main reason I like blogger so much)
To install the code in your blogger blog all you have to do is-
1.    Sign in to your Google account and open blogger dashboard.
2.    On the left side you will find the option panel with all the options like- pages, posts, stats etc. Under the option panel go to settings (lower most option) and in setting option go to sub option “others”.
3.    Scroll down and the last field you will find on that page is “Google analytics” Just paste your “Analytics Web Property ID” (Note- you do not need to paste the entire code, you just have to paste your ID that’s all)
4. Save changes.
Congratulations, now tracking will become within few hours.

But if you are using a custom template instead of standard blogger templates then the above method will not work. In the case you have to manually install the code-

How to manually install Google analytics tracking code on a blogger blog with custom template, wordpress blog and self hosted blog.

Now instead of the tracking ID, copy the entire code for tracking from Google Analytics.

1. Open your bloggger dash board.

2. On the left side option panel, select “template”

3. Select “edit HTML”

4. Now in the HTML window click anywhere and press “CTRL + F” and in the find box type- “/head”. Basically we have to find the closing head tag.

5. Now paste the entire code just above the closing of the “head tag” (</head)

6. Save the template.
Congratulation, tracking will begin within few hours.

You can confirm by going to “tracking code” in your Google analytics account. It will now say “Receiving data”. (It may take few hours to detect the code on your blog)

For your wordpress or self hosted blog, do the same things, just pate the entire tracking code above the closing of your head tag.

Please leave your feed backs and questions in comment section below. Share the article. Thank you.

No comments:

Post a Comment

Please take a sec to share :-)

Related Posts Plugin for WordPress, Blogger...

About Me

Hello there, I am a student studying in class 12. Computers, technology, internet are my areas of interest. I have learned a lot about coding, designing, internet since I was in class 8 and still learning. Now I want to share my knowledge with everyone so they can also get benefit from that.