Posted By

koko on 07/14/10


Tagged

google Analytics


Versions (?)

Google Analytics code


 / Published in: JavaScript
 

Just the copy of the official code

  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-xxxxxx-x");
  8. pageTracker._trackPageview();
  9. } catch(err) {}
  10. </script>

Report this snippet  

You need to login to post a comment.