mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-07 10:34:46 -04:00
Disable prod admin internal analytics tracking
This commit is contained in:
parent
25f01db701
commit
ffb59d5cec
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ module.exports = class Tracker
|
|||
# https://segment.com/docs/integrations/mixpanel/
|
||||
properties = properties or {}
|
||||
|
||||
@trackEventInternal action, _.cloneDeep properties
|
||||
@trackEventInternal action, _.cloneDeep properties unless me?.isAdmin() and @isProduction
|
||||
|
||||
console.log 'Would track analytics event:', action, properties, includeIntegrations if debugAnalytics
|
||||
return unless me and @isProduction and analytics? and not me.isAdmin()
|
||||
|
|
Loading…
Add table
Reference in a new issue