Today we have made a change to the Layouts Template language to improve Google Analytics coverage. We have added the following includable section.<b:includable id='google-analytics' var='blog'>This now allows you to include analytics tracking on your blog by adding the following include call to your template, preferably right before the close body tag so it doesn’t delay the visible page being rendered:
<b:if cond='data:blog.analyticsAccountNumber'>
<script type='text/javascript'>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<data:blog.analyticsAccountNumber/>']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = (document.location.protocol == 'https:' ?
'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
</b:if>
</b:includable>Add this before </body> tag <b:include name='google-analytics' data='blog'/>For more details on the benefits you get from using Google Analytics, see this post on Blogger Buzz. If you have any questions about this new functionality, please join in the discussion on the Blogger Developer Group.
Post Top Ad
Responsive Ads Here
12/03/2011
Template Change: Analytics Section
Subscribe to:
Post Comments (Atom)
Post Top Ad
Responsive Ads Here
Author Details
MyBloggerMarket is a blogger resources site which is a provider of high quality blogger templates, widgets and other blogger hacks with premium looking layout and robust design. The main mission of MyBloggerMarket is to provide the best quality blogger stuff for free which are professionally designed and perfectlly seo optimized to deliver best result for your blog.

No comments:
Post a Comment
Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.
Note:
1. Make sure to click the "Subscribe By Email" link below the comment to be notified of follow up comments and replies.
2. Please "Do Not Spam" - Spam comments will be deleted immediately upon our review.
3. Please "Do Not Add Links" to the body of your comment as they will not be published.
4. Only "English" comments shall be approved.
5. If you have a problem check first the comments, maybe you will find the solution there.