Friday 7 September 2012

What is google analytics

Google_Analytics:

Google provides a free website service, for webmasters to generate details about visitors statics on a website. That service of Google is also known as Google Analytics, which provide a analytic code for web pages. By using the Google Analytics we can track our website's webpages activity and performance.

Example of the Google_Analytic Code:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX-Y']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

Note:

This script code is must be paste on the <head> part of the web page. If you have a website with 5-6 web pages, so also paste the same Google Analytics code in each page.

No comments: