hapi-mixpanel

2.0.0 • Public • Published

Hapi-Mixpanel

Hapi.js plugin that adds a server.track() method, which sends events to Mixpanel.

Build Status

Lead Maintainer - Gil Pedersen

Usage

Register plugin to add a server.track() method.

    await server.register({
        plugin: HapiMixpanel,
        options
    });

Registration options

  • apiKey - Your mixpanel provided api token.
  • endpoint - optional endpoint url used to send tracking events.

server.track(eventName, [properties], [timestamp])

Records an event called eventName with the specified properties and timestamp.

This is queued internally, and sent to the mixpanel backend in batches.

Package Sidebar

Install

npm i hapi-mixpanel

Weekly Downloads

0

Version

2.0.0

License

BSD-2-Clause

Unpacked Size

4.33 kB

Total Files

3

Last publish

Collaborators

  • kanongil