mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-28 22:00:25 -04:00
Add a bit more Tracker debug info
This commit is contained in:
parent
c42385637f
commit
fcafe5e249
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ module.exports = class Tracker
|
|||
for integration in includeIntegrations
|
||||
options.integrations[integration] = true
|
||||
|
||||
console.log "Would track analytics pageview: '/#{name}'", properties, options if debugAnalytics
|
||||
console.log "Would track analytics pageview: '/#{name}'", properties, options, includeIntegrations if debugAnalytics
|
||||
return unless @isProduction and analytics? and not me.isAdmin()
|
||||
|
||||
# Ok to pass empty properties, but maybe not options
|
||||
|
@ -58,7 +58,7 @@ module.exports = class Tracker
|
|||
# https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#Anatomy
|
||||
# Mixpanel properties format: whatever you want unlike GA
|
||||
# https://segment.com/docs/integrations/mixpanel/
|
||||
console.log 'Would track analytics event:', action, properties if debugAnalytics
|
||||
console.log 'Would track analytics event:', action, properties, includeIntegrations if debugAnalytics
|
||||
return unless me and @isProduction and analytics? and not me.isAdmin()
|
||||
properties = properties or {}
|
||||
context = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue