Saturday, January 27, 2018

How To Add Google Analytics To Blogger

Sometimes our google analytics does not work properly because we haven't correctly implemented that code on our site.So this is the main reason analytics tracking code not correctly works on our site due to template or theme coding issue. By the way we all have implent google analytics id in blogger setting.Sometimes the code get ignore by due to template development issue.

So today iam going to show you how to implent google analytics properly to website.

analytics tracking id

How we normally implement the tracking id

.Through blogger setting

.After <head>tag

Through blogger setting it always won't work.

After <head>tag the track id will visible on header of the site if you add track code like this.



This is not correct method.

How To Set Favorate Song As Hellotune In Jio

Add code always like this after <head>
Add this code after<head> replace your analytics tracking id with GA_TRACKING_ID

<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src=""></script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments)};
  gtag('js', new Date());

  gtag('config', 'GA_TRACKING_ID');

Then save your template or theme your track will work properly.

About the Author


Author & Editor

Suprakash mishra is a security researcher in various field.In wikitech he writes about technolohy,ethical hacking and much more.

Post a Comment

WikiTechPedia © 2018 -Sponsored By suprakash