0.0.2 • Published 3 years ago

analytics-plugin-profitwell v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Profitwell

This library exports the profitwell plugin for the analytics package & standalone methods for any project to use to make it easier to interact with Profitwell.

This analytics plugin will load Profitwell into your application.

Installation

npm install analytics
npm install analytics-plugin-profitwell

How to use

import Analytics from 'analytics'
import profitwell from 'analytics-plugin-profitwell'

const analytics = Analytics({
  app: 'awesome-app',
  plugins: [
    profitwell({
      publicToken: '1234' // required
      identifyMode: 'user_id' // optional (valid values: user_id, email, custom)
      getCustomId(traits) {
        return traits.stripeId;
      }, // required if `identifyMode` is "custom"
    })
  ]
})
0.0.2

3 years ago

0.0.1

3 years ago