Skip to content

Commit

Permalink
Merge pull request #228 from cprobert/master
Browse files Browse the repository at this point in the history
Updated Universal Analytics Provider...

> New provider. Isolated. Low risk. Merging.
  • Loading branch information
groundh0g committed May 25, 2015
2 parents 5ec3a66 + bfeba20 commit 10ff39a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _includes/JB/analytics-providers/google-universal
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<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','//www.google-analytics.com/analytics.js','ga');

ga('create', {{ site.JB.analytics.googleUA.tracking_id }}', {% if site.JB.analytics.googleUA.property_name %}{{ site.JB.analytics.googleUA.property_name }}{% else %}'auto'{% endif %});
ga('send', 'pageview');
</script>

0 comments on commit 10ff39a

Please sign in to comment.