Skip to content

Commit

Permalink
Updated GA script to use ga-lite (https://github.com/jehna/ga-lite)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Alex Paramanandan committed Jan 22, 2018
1 parent 4580e9a commit 6823b88
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions partials/google-analytics.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<script>
if (window.ga_id) {
(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','//www.google-analytics.com/analytics.js','ga');
ga('create', window.ga_id, 'auto');
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
}
</script>
(function(e,t,n,i,s,a,c){e[n]=e[n]||function(){(e[n].q=e[n].q||[]).push(arguments)}
;a=t.createElement(i);c=t.getElementsByTagName(i)[0];a.async=true;a.src=s
;c.parentNode.insertBefore(a,c)
})(window,document,"galite","script","https://cdn.jsdelivr.net/npm/ga-lite@2/dist/ga-lite.min.js");
galite('create', 'UA-57914210-1', 'auto');
galite('send', 'pageview');
</script>

0 comments on commit 6823b88

Please sign in to comment.