Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
feat(gen): Change ga.js to analytics.js
Browse files Browse the repository at this point in the history
Updates the script to the new Google recommended script.
  • Loading branch information
claydiffrient authored and passy committed Aug 17, 2013
1 parent e1cb206 commit 17ae9e6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions templates/common/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@
<!-- Add your site or application content here -->
<div class="container" ng-view></div>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src='//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<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-XXXXX-X');
ga('send', 'pageview');
</script>

<script src="bower_components/jquery/jquery.js"></script>
Expand Down

0 comments on commit 17ae9e6

Please sign in to comment.