Segment and keen.io
https://app.segment.com/fu-good/overview
設定專案
const analytics = new Analytics(WRITE_KEY, { flushInterval: 1000 })
export const analyticsClient = bluebird.promisifyAll(analytics)
const properties = {}
await analyticsClient.trackAsync({
userId: restaurantAlias,
event: 'Stat Reservations',
properties: {
...yourProperties
},
})
//called flush finally
await analyticsClient.flushAsync()
Check Segmentation Debugger
https://app.segment.com/fu-good/sources/restaurant_service/debugger

Last updated
Was this helpful?