March 20, 2016

How to Add Google Analytics to Blogspot Blog for Beginners


Do you want to add Analytics code to blogger. Adding the Google Analytics to Blogger Blog is easy using the below method. In this post I will show you the best way on How To Add Google Analytics To Blogger Add Analytics and control the bounce rate of Google Analytics.

Get Google Analytics Tracking ID from Analytics: UA-XXXX-1

Copy the below code

<script type='text/javascript'>
  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-XXXXXXX-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);
  setTimeout(&quot;_gaq.push([&#39;_trackEvent&#39;, &#39;5_seconds&#39;, &#39;read&#39;])&quot;,15000);
  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

Edit the UA-XXXX-1 with your analytics Tracking ID
Edit "5_seconds" with any numbers you want. - This will trigger an analytics event only after 5 seconds when a user stays in your web page. This will result is lowering bounce rate significantly.

Add Google Analytics to Blogspot Blog for Beginners

Go to Blogger
Go to Theme
Select Edit HTML
Find </head> tag
Paste the Edited code before the tag.
Save theme

To check Google Analytics is working in your Blogspot Blog

Go to Google Analytics
Go to all website data
Go to Real time monitoring
Open a your blogger blog in a new tab and check if analytics is counting the visit after 5 seconds.

Kindly spend 5 seconds to share this post



Search Here

Whats Hot

About Author