Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const trackOrder = () => {
analytics.track('Order Completed')
analytics.track('Order Cancelled', {
order_id: 323
})
analytics.identify('userIdOnly')
analytics.identify('userId', {
age: 32
})
analytics.alias('newlyAliasedId')
analytics.screen('User Login Screen', {
method: 'google'
})
}
const trackOrder = () => {
analytics.track('Order Completed')
analytics.track('Order Cancelled', {
order_id: 323
})
analytics.identify('userIdOnly')
analytics.identify('userId', {
age: 32
})
analytics.alias('newlyAliasedId')
analytics.screen('User Login Screen', {
method: 'google'
})
}