reenable google analytics

This commit is contained in:
Connor Turland 2017-03-15 22:05:14 -04:00
parent 4d3741c3b4
commit d76433d550
2 changed files with 1 additions and 3 deletions

View file

@ -10,6 +10,5 @@
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '<%= ENV["GA_TRACKING_CODE"] %>', 'auto');
ga('send', 'pageview');
</script>

View file

@ -77,8 +77,7 @@ const ReactApp = {
break
}
self.render()
// track using google analytics here
//window.ga && window.ga('send', 'pageview', location.pathname, {title: document.title})
window.ga && window.ga('send', 'pageview', pathname)
},
render: function() {
const self = ReactApp