Skip to content

Instantly share code, notes, and snippets.

@digitalbase
Created April 21, 2020 07:41
Show Gist options
  • Save digitalbase/7dd9dabf73366bf05ff7084b302ce8a4 to your computer and use it in GitHub Desktop.
Save digitalbase/7dd9dabf73366bf05ff7084b302ce8a4 to your computer and use it in GitHub Desktop.
CRM change - Tracking
// spec @ https://segment.com/docs/connections/spec/track/
analytics.track('Deal Status Won', {
dealSize: 5400
dealCurrency: 'euro'
dealPeriod: 'annual'
});
// spec @ https://segment.com/docs/connections/spec/identify/
analytics.identify(userId, {
dealStatus: 'won',
dealSize: 5400,
dealCurrency: 'euro
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment