diff --git a/src/scripts/crafting_guide_router.coffee b/src/scripts/crafting_guide_router.coffee index 5a6dccca0..54810d08a 100644 --- a/src/scripts/crafting_guide_router.coffee +++ b/src/scripts/crafting_guide_router.coffee @@ -49,7 +49,7 @@ module.exports = class CraftingGuideRouter extends Backbone.Router return if @_lastReported is pathname @_lastReported = pathname - if global.env is 'production' + if global.env is 'production' and ga? logger.info "Recording GA page view: #{pathname}" ga 'send', 'pageview', pathname else