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'> <b:if cond='data: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: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.
Home » Tricks » Template Change: Analytics Section
6 comments:
interesting...
Replybut we just do it my friend, above tag </body>
<b:include data='blog' name='google-analytics'/>
@Beben Koben : i forget that , thanks you . i will edit this post
Reply2015-07-15 zhengjx
Replymont blanc
kate spade
cheap oakleys
ralph lauren pas cher
soccer shoes for sale
nike pas cher
chaussure louboutin pas cher
cheap ray ban sunglasses
air max 2015
pandora bracelets
michael kors
kate spade bags
football jerseys
tory burch shoes
michael kors uk outlet
fitflops shoes
air max uk
fitflops shoes
replica watches rolex
coach outlet
ray ban sunglasses uk
michael kors
cheap jordans free shipping
michael kors handbags
ed hardy uk
tory burch handbags
ralph lauren femme
ralph lauren sale
ray bans
michael kors
ed hardy clothing outlet
longchamp le pliage
oakley sunglasses wholesale
louboutin
nike blazer pas cher
I'm inspire to see such informative post .
Replyair max, louboutin shoes, ray ban sunglasses, new balance, vans, nike trainers uk, ray ban sunglasses, uggs outlet, doke gabbana, ralph lauren pas cher, air max, nike huaraches, nike free, coach factory outlet, thomas sabo, polo ralph lauren outlet, nike roshe run, moncler outlet, barbour, marc jacobs, replica rolex, canada goose, jordan 6, michael kors bags, red bottom shoes, longchamp outlet online, ugg italia, michael jordan shoes, air jordan pas cher, p90x3, moncler, air jordan, barbour outlet, moncler outlet, discount oakley sunglasses, christian louboutin, uggs,
ReplyVery well displayed. Thanks for the post. It was very interesting.
ReplyPost a Comment