Version: 0.0.2
Last Updated: Unknown
This snippet is only used to set up Segment IO.
Place REACT_APP_SEGMENT_KEY in the .env file and import Segment during initialisation and run Segment.init();.
Recommendation would be to place an Emitter event for it.
Emitter.emit('event', { name: 'John Doe', email: 'okeeffe_d@icloud.com', plan: 'Enterprise' });
window.analytics.identify('userId12345', { firstName: 'Dennis', lastName: `O'Keeffe`, email: 'okeeffe_d@icloud.com' });
window.analytics.track('Email Opened', { name: 'John Doe', email: 'okeeffe_d@icloud.com', plan: 'Enterprise' });