Google Analytics Tracking Code For Blog

In this article I give an overview of Google Analytics in more details.  I will describe where to get the Google Analytics tracking code and where to paste it in ProSense WordPress theme.

When you log into your Google Analytics account on the Overview page, you will see Create New Account on the top right hand corner.  If you have not already done this, create an account and enter your website URL.  I have a few profiles on the Analytics Settings page.  Thus instead of creating a new account I will use a small black arrow next to Create New Account phrase.  The Google Analytics code is specific for each URL.  When you have got your desired profile, you can click Edit.

In my case I see a page with name such as ‘Profile Settings: irinaovery.com/’.  Below this heading you can find a Check Status link.  After clicking the Check Status link the page with Google Analytics tracking code appears.  You have to copy and paste it right before </body> tag on the page, which you want to be tracking.  I use a ProSense theme, which is written in php code.  Nevertheless, I can paste the Google Analytics tracking code on the very bottom of footer.php page.  For this reason I have to go to my WordPress admin area and click Appearance and the Editor link.   On the left hand side of the Edit Themes page I look for Footer (footer.php) page.  I paste the code from the Google Analytics tracking code page to the very bottom of footer.php page.  Then I click ‘Update File’.

How do you know that the Google Analytics tracking code is put in the right place?  Open your blog in Internet Explorer or Mozilla Firefox browser and go to View, Page Source.  The page with code of your index or home page will open.  You have to find on the very bottom of the page the tracking code such as

</html><script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol)
? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'
%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("Your Google ID here");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>

The code should be situated before </body>, what you can see in the example above.

In addition I would like to say that it is possible to use Google Analytics for various purposes.  For example, you can link your Google Analytics account to your AdWords account.  Google Analytics will import cost data from your AdWords campaigns.

You can also create goals and funnels in your Google Analytics account.  For example, you can set up a goal as a registration page, if you want to know how many visitors of your blog have been registered using a pop-in form.  A funnel represents the action visitors have to take in order to get the goal.  In this case it will be by filling details in a form and clicking the confirmation button on the form. Using goals and funnels will help you find how many visitors do not register and where they go instead.  You will be able to define the value of the goal.

Google Analytics have a lot of useful features which are essential for successful online business.  Google Analytics provide you with the ability to analyze your traffic and manipulate it in the best way.

  • Share/Bookmark

6 Responses to “Google Analytics Tracking Code For Blog”

  1. Many thanks Irina,
    Great. I now have my blog on google analytics. Very useful info.

  2. Hi Irina, yes, Google analytics is very useful. D9 hosting also offer the same on their site.

    Enjoy the journey.

    Mandy

  3. Hi Irina,

    Thanks for the great info! Google Analytics is a great tool.

    Best regards,
    George Nieves

  4. Hello Irina,
    I am changing my blog over to helping out MC students. I am a 2009 MC graduate and will have oodles of great information to take advantage of. You will learn from all of my mistakes and make this journey more lucrative and pleasurable! GUARANTEED!

    visit> http://www.craigstringham.com

    Sign up to my e-mail and rss feed and never miss a single bit of the excellent material I have to offer all of you.

    Here’s to your success,
    Cragar

  5. Thanks Craig! I will definitely visit your blog.

  6. hi Irina, great post with some excellent and important info, think ill go check out the rest of your blog and see what else i can learn,
    best regards
    pete chapman

Leave a Reply

CommentLuv Enabled

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.