Hapi.js plugin that adds a server.track()
method, which sends events to Mixpanel.
Lead Maintainer - Gil Pedersen
Register plugin to add a server.track()
method.
await server.register({
plugin: HapiMixpanel,
options
});
apiKey
- Your mixpanel provided api token.endpoint
- optional endpoint url used to send tracking events.
Records an event called eventName
with the specified properties and timestamp.
This is queued internally, and sent to the mixpanel backend in batches.