mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Track pageviews analytics internally
This commit is contained in:
parent
31b65ef247
commit
f3279863d4
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ module.exports = class Tracker
|
|||
trackPageView: ->
|
||||
name = Backbone.history.getFragment()
|
||||
console.log "Would track analytics pageview: '/#{name}'" if debugAnalytics
|
||||
@trackEventInternal 'Pageview', url: name unless me?.isAdmin() and @isProduction
|
||||
return unless @isProduction and not me.isAdmin()
|
||||
|
||||
# Google Analytics
|
||||
|
|
Loading…
Reference in a new issue