0.1.4 ā€¢ Published 2 years ago

wakeflow-events v0.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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;

Wakeflow Logo

šŸ‘Øā€šŸ’» Visit us on www.wakeflow.io

šŸ’¬ Chat with us on WhatsApp or our live chat

āœ‰ļø Email us

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago