Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Google Analytics Tracking Code (See related posts)



   1  
   2        <script type="text/javascript">
   3        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
   4        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
   5        </script>
   6  
   7        <script type="text/javascript">
   8        var pageTracker = _gat._getTracker("UA-xxxxxx-x");
   9        pageTracker._initData();
  10        pageTracker._trackPageview();
  11        </script>

You need to create an account or log in to post comments to this site.


Click here to browse all 5273 code snippets

Related Posts