Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
changed how to load google analytics script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 10, 2015
1 parent c9fcb02 commit 0653e8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 1 addition & 11 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,6 @@
{{ghost_foot}}
{{! The main JavaScript file for Casper }}
<script type="text/javascript" src="{{asset "js/uno.js"}}"></script>
<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', 'UA-34372837-1', 'kikobeats.com');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
{{!-- {{#with post}}
{{/with}} --}}
{{> google-analytics}}
</body>
</html>
10 changes: 10 additions & 0 deletions partials/google-analytics.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<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', 'UA-56994517-2', 'auto');
ga('send', 'pageview');
</script>

0 comments on commit 0653e8a

Please sign in to comment.