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.




