From 57dfaf28895f294f543cb88db583f8e9989b1464 Mon Sep 17 00:00:00 2001 From: Hemang Kumar Date: Thu, 25 May 2017 17:33:47 +0530 Subject: [PATCH] analytics.js: Move GA to own file --- index.html | 10 ---------- resources/js/analytics.js | 7 +++++++ 2 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 resources/js/analytics.js diff --git a/index.html b/index.html index 50ac5a7..1a5d16b 100644 --- a/index.html +++ b/index.html @@ -84,13 +84,3 @@ $('.github-card').html('') }) - diff --git a/resources/js/analytics.js b/resources/js/analytics.js new file mode 100644 index 0000000..ddc0af5 --- /dev/null +++ b/resources/js/analytics.js @@ -0,0 +1,7 @@ +(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'); + +ga('create', 'UA-76769778-1', 'auto'); +ga('send', 'pageview');