aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Oliff <[email protected]>2018-04-20 16:27:01 +0900
committerMark Otto <[email protected]>2018-07-11 23:30:46 -0700
commit50ff31bf51ad64cb63dff3725b992fa052ef0bc1 (patch)
tree17e0a6f415865b6c18ffe70b5c7e82076ae58420
parent01c70b11abefa75a7205e1f8ddcbb53f9f2862f3 (diff)
downloadbootstrap-50ff31bf51ad64cb63dff3725b992fa052ef0bc1.tar.xz
bootstrap-50ff31bf51ad64cb63dff3725b992fa052ef0bc1.zip
Optimised Google Analytics Loading
-rw-r--r--site/_includes/header.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/site/_includes/header.html b/site/_includes/header.html
index 3534807f8..b92a5790a 100644
--- a/site/_includes/header.html
+++ b/site/_includes/header.html
@@ -30,10 +30,8 @@
{% include social.html %}
<script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-146052-10', 'getbootstrap.com');
ga('send', 'pageview');
</script>
+<script async src='https://www.google-analytics.com/analytics.js'></script>