0.1.4 ā¢ Published 2 years ago
wakeflow-events v0.1.4
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('user@wakeflow.io' {
name: 'John Smith',
email: 'user@wakeflow.io'
domain: 'wakeflow.io'
})
}
const track = () => {
events.track('user@wakeflow.io', 'User Logged In', {
name: 'John Smith',
email: 'user@wakeflow.io',
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