Track pageviews analytics internally

This commit is contained in:
Matt Lott 2015-12-04 16:07:54 -08:00
parent 31b65ef247
commit f3279863d4

View file

@ -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