mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-01-12 22:46:44 +08:00
[DEV] Log analytics events
This commit is contained in:
@@ -21,7 +21,7 @@ tracker.customDimensionsFieldsIndexMap = {
|
||||
}
|
||||
|
||||
const log = (...args: any[]) => {
|
||||
// console.log('[ANALYTICS]', ...args) // tslint:disable-line no-console
|
||||
console.log('[ANALYTICS]', ...args) // tslint:disable-line no-console
|
||||
}
|
||||
|
||||
let _userId: string
|
||||
|
||||
@@ -14,7 +14,7 @@ gtag('config', trackingId, {
|
||||
// }
|
||||
|
||||
const gtagAndLog = (...args: any[]) => {
|
||||
// if (__DEV__) console.debug('[ANALYTICS]', ...args) // tslint:disable-line no-console
|
||||
if (__DEV__) console.debug('[ANALYTICS]', ...args) // tslint:disable-line no-console
|
||||
gtag(...args)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user