Posted By

tscheckenbach on 03/24/10


Tagged

google Analytics


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

kwanhon


Google-Analytics


 / Published in: JavaScript
 

  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. try {
  7. var pageTracker = _gat._getTracker("UA-XYZXYZXYZ-X");
  8. pageTracker._setDomainName(".xyzxyz.xyz");
  9. pageTracker._trackPageview();
  10. } catch(err) {}</script>

Report this snippet  

You need to login to post a comment.