reenable google analytics
This commit is contained in:
parent
4d3741c3b4
commit
d76433d550
2 changed files with 1 additions and 3 deletions
|
@ -10,6 +10,5 @@
|
||||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
ga('create', '<%= ENV["GA_TRACKING_CODE"] %>', 'auto');
|
ga('create', '<%= ENV["GA_TRACKING_CODE"] %>', 'auto');
|
||||||
ga('send', 'pageview');
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -77,8 +77,7 @@ const ReactApp = {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
self.render()
|
self.render()
|
||||||
// track using google analytics here
|
window.ga && window.ga('send', 'pageview', pathname)
|
||||||
//window.ga && window.ga('send', 'pageview', location.pathname, {title: document.title})
|
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
const self = ReactApp
|
const self = ReactApp
|
||||||
|
|
Loading…
Add table
Reference in a new issue