Browse Source

Merge pull request #1531 from greenknot/develop

Fix typo in logger analytics events
gre-patch-1
greenknot 6 years ago
committed by GitHub
parent
commit
f772801f02
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/logger/logger.js

8
src/logger/logger.js

@ -316,19 +316,19 @@ export default {
analyticsStart: (id: string) => {
if (logAnalytics) {
logger.log('info', `△ start() with user id ${id}`, { type: 'anaytics-start', id })
logger.log('info', `△ start() with user id ${id}`, { type: 'analytics-start', id })
}
},
analyticsStop: () => {
if (logAnalytics) {
logger.log('info', `△ stop()`, { type: 'anaytics-stop' })
logger.log('info', `△ stop()`, { type: 'analytics-stop' })
}
},
analyticsTrack: (event: string, properties: ?Object) => {
if (logAnalytics) {
logger.log('info', `△ track ${event}`, { type: 'anaytics-track', properties })
logger.log('info', `△ track ${event}`, { type: 'analytics-track', properties })
}
captureBreadcrumb({
category: 'track',
@ -340,7 +340,7 @@ export default {
analyticsPage: (category: string, name: ?string, properties: ?Object) => {
const message = name ? `${category} ${name}` : category
if (logAnalytics) {
logger.log('info', `△ page ${message}`, { type: 'anaytics-page', properties })
logger.log('info', `△ page ${message}`, { type: 'analytics-page', properties })
}
captureBreadcrumb({
category: 'page',

Loading…
Cancel
Save