Skip to content

Commit 3c07677

Browse files
committed
Fixed a typo in the asynchronous Google Analytics snippet and optimized the protocol check.
1 parent db9da49 commit 3c07677

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@
7878

7979
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
8080
<script>
81-
var_gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
82-
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=true;
83-
g.src=('https:'==location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';
84-
s.parentNode.insertBefore(g,s)})(document,'script');
81+
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
82+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
83+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
84+
s.parentNode.insertBefore(g,s)}(document,'script'));
8585
</script>
8686

8787
</body>

0 commit comments

Comments
 (0)