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');
|
||||
|
||||
ga('create', '<%= ENV["GA_TRACKING_CODE"] %>', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue