This post covers how to install Google Analytics on the Blogger blogging platforms. Adding analytics to your blog can tell you things like:
- Which referring sites send you the best traffic
- Which visitors are most likely to subscribe to your email list
- Which keywords have the highest engagement
- Which articles have the lowest bounce rate
- Which articles monetize best using AdSense
and much more.
For more information about how web analytics can be useful for bloggers, check out Avinash Kaushik's post on useful goals for blogs. Installing Google Analytics on Blogger is very easy.
Here are the basic steps:
Step 1: Setup a Google Analytics AccountSearch for Google Analytics and sign in using your Blogger login. If your account doesn’t work for some reason, you can create a new one instead. Once you click on Google Analytics, you will be redirected to a log-in page. Log-in using the same email that you are managing your blog with.
When you are in your Google Analytics account, check if your site is already in your accounts. If not, create one.
To create a new account, click on “create new account” as shown in the image above. Then you will be directed to the page below.
Follow the instructions on this page and you are set to go. It is pretty self explanatory. Click “Get tracking ID” after you are done completing information in this page.
Here's where you would be looking for the information required by blogspot later.
Ok, now you are done with setting up your Google Analytics account. The next step is connecting Google Analytics with your Blogger account so it can report back to Google Analytics and provide you with some cool data points.
Step 2: Adding GA Tracking Code to Your Blogger
TemplateIf you are using:
- Dynamic Views and Layout Templates
**Just copy and paste your Google Analytics ID (The tracking ID is a string like UA-000000-01). Then hit “Save Settings” on the top right of the page.
- Classic template ( It’s time to change to the newer ones if you are still on this).
** This is not a very difficult step even if you are afraid to touch your template code. Login to your Blogger account and then click on the “Layout” => “Edit HTML” tabs. This will bring you to the template code. Before you make any changes, I advise you to backup your template just in case there are any problems. After you’ve done so, continue reading.
Now in the edit template html code window, scroll all the way to the bottom of your template code and look for the</body> tag. There should only be one of these closing tags in your template. If you can’t find it then your template wasn’t properly created and you should add one right above the </html> tag.The </html> tag should always be your last line of code in your template. It signifies the end of your template.
Ok, now go back to the code you saved before in a Word Doc from Google Analytics. You are going to copy it and paste it right above the </body> tag as illustrated in the image below. The yellow highlighted code is the new GA code I just pasted into my template.
Save your template and you shouldn’t get any error messages. If you do, it’s most likely not related to this GA code and something else with your template itself.
Assuming you’ve been successful with your save, you are all done embedding the GA code in your template!
Step #3 – Confirm Google Analytics is TrackingGo back into your Google Analytics account and look at your dashboard.