From f3279863d4adef15c9d30c7088a012ea520789b5 Mon Sep 17 00:00:00 2001 From: Matt Lott Date: Fri, 4 Dec 2015 16:07:54 -0800 Subject: [PATCH] Track pageviews analytics internally --- app/core/Tracker.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/core/Tracker.coffee b/app/core/Tracker.coffee index 85de8e552..3e11d1180 100644 --- a/app/core/Tracker.coffee +++ b/app/core/Tracker.coffee @@ -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