Permalink
Browse files

Fixed a typo in the asynchronous Google Analytics snippet and optimiz…

…ed the protocol check.
  • Loading branch information...
mathiasbynens committed Jan 7, 2011
1 parent db9da49 commit 3c07677ab3c5007ad25bb8200c08060b092ae8f7
Showing with 4 additions and 4 deletions.
  1. +4 −4 index.html
View
@@ -78,10 +78,10 @@
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
- var_gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
- (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=true;
- g.src=('https:'==location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';
- s.parentNode.insertBefore(g,s)})(document,'script');
+ var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
+ g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>

0 comments on commit 3c07677

Please sign in to comment.