Browse Source

Fix typo in logger analytics events

s/anaytics/analytics/g
gre-patch-1
greenknot 6 years ago
parent
commit
af4e3d9f71
No known key found for this signature in database GPG Key ID: FE787D04793EAAA4
  1. 8
      src/logger/logger.js

8
src/logger/logger.js

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

Loading…
Cancel
Save