wakeflow-events
v0.1.4
Published
wakeflow's event platform
Downloads
3
Readme
Intro
We use this library to track events client & server-side.
Installation
npm i wakeflow-events
Usage
import events from 'wakeflow-events'
events.identify(email: string, data?: {});
events.track(email: string, event: string, data?: {});
Example Usage
import events from 'wakeflow-events'
const App = () => {
const identify = () => {
events.identify('[email protected]' {
name: 'John Smith',
email: '[email protected]'
domain: 'wakeflow.io'
})
}
const track = () => {
events.track('[email protected]', 'User Logged In', {
name: 'John Smith',
email: '[email protected]',
domain: 'wakeflow.io'
})
}
return (
<>
<button onClick={identify}>Identify Button</button>
<button onClick={track}>Track Event Button</button>
</>
)
}
export default App;
👨💻 Visit us on www.wakeflow.io
💬 Chat with us on WhatsApp or our live chat
✉️ Email us