botkit-mixpanel

0.0.3 • Public • Published

Botkit Mixpanel Analytics

This module enables the basic Mixpanel analytics.

npm install --save botkit-mixpanel

Add the following to your code AFTER you initialize your Botkit controller:

var controller = Botkit.slackbot();
require('botkit-mixpanel')(controller,  {mixpanel_api_key: process.env.MIXPANEL_API_KEY, debug: true, always_update: true});

Options

Enable debug output:

require('botkit-mixpanel')(controller,  {mixpanel_api_key: process.env.MIXPANEL_API_KEY, debug: true, always_update: true});

By default, this module will only send user profile and bot instance information the first time an event is received. To update this information every time an event is received, include the always_update option:

require('botkit-mixpanel')(controller,  {mixpanel_api_key: process.env.MIXPANEL_API_KEY, debug: true, always_update: true});

Data collection

With this module installed and enabled, your Botkit application will automatically send a copy of any message your bot receives to Mixpanel's analytics API, as well as user profile information.

Where applicable, ensure that your terms of service and privacy policy reflect this data collection.

Package Sidebar

Install

npm i botkit-mixpanel

Weekly Downloads

3

Version

0.0.3

License

ISC

Unpacked Size

14 kB

Total Files

4

Last publish

Collaborators

  • shishirsharma