Skip to content

Commit

Permalink
Move analytics outside jQuery deferred block.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed May 6, 2013
1 parent c9e5bed commit e5fc585
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,17 +213,17 @@ <h3 id="license">License</h3>
$('.version-tag').text('v' + version);
$('.version-href').attr('href', url);
});
});

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-40704740-2']);
_gaq.push(['_trackPageview']);
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-40704740-2']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
});
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>

0 comments on commit e5fc585

Please sign in to comment.