Needlessly Provoking Marsupials

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.

install

npm i botkit-mixpanel

Downloadsweekly downloads

0

version

0.0.3

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability