Skip to content

Commit

Permalink
[FEAT] Include analytics for tscpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Reis committed Mar 1, 2017
1 parent 6b7dab4 commit 6452869
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/views/shared/_ga_tscpl.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<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','https://www.google-analytics.com/analytics.js','ga');

var userGaId = $("#user_ga_id").val();
ga('create', 'UA-37972615-6', 'auto', {
userId: userGaId
});

ga('send', 'pageview');
</script>

0 comments on commit 6452869

Please sign in to comment.