Skip to content

Commit

Permalink
Fixed a typo in the asynchronous Google Analytics snippet and optimiz…
Browse files Browse the repository at this point in the history
…ed the protocol check.
  • Loading branch information
mathiasbynens committed Jan 7, 2011
1 parent db9da49 commit 3c07677
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3c07677

Please sign in to comment.