1.1.0 • Published 3 years ago

analytics-plugin-tapfiliate v1.1.0

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

Tapfiliate

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

This analytics plugin will load Tapfiliate into your application.

Installation

npm install analytics
npm install analytics-plugin-tapfiliate

How to use

import Analytics from 'analytics'
import tapfiliate from 'analytics-plugin-tapfiliate'

const analytics = Analytics({
  app: 'awesome-app',
  plugins: [
    tapfiliate({
      tapfiliateId: '1234' // required
      customerType: 'customer', // optional. can be customer, trial or lead (default: customer)
      cookieDomain: 'www.example.com', //optional (default: none)
      referralCodeParam: 'ref' // optional (default: ref)
    })
  ]
})

For more information view the Tapfiliate documentation

Registering a conversion

Registering a conversion is via a custom method

analytics.plugins.tapfiliate.conversion(externalId, amount);
1.1.0

3 years ago

1.0.0

3 years ago