Posted By

LeeRJohnson on 05/17/08


Tagged

template google script Analytics


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

LeeRJohnson
chrisjlee
michellebracken


Google Analytics ga.js Script


 / Published in: HTML
 

URL: ga-js

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

Report this snippet  

You need to login to post a comment.