0.1.7 • Published 5 years ago

analytics-plugin-customerio v0.1.7

Weekly downloads
73
License
MIT
Repository
github
Last release
5 years ago

Customer.io plugin for analytics

Note: This package has moved to @analytics/customerio

Integration with customer.io for analytics package.

View the docs

Usage

Install analytics and analytics-plugin-customerio packages

npm install analytics analytics-plugin-customerio

Import and initialize in project

import Analytics from 'analytics'
import customerIOPlugin from '@analytics/customerio'

const analytics = Analytics({
  app: 'awesome-app',
  plugins: [
    customerIOPlugin({
      siteId: '123-xyz'
    })
  ]
})

/* Track page views */
analytics.page()

/* Track custom events */
analytics.track('buttonClicked')

/* Identify visitors */
analytics.identify('user-xzy-123', {
  name: 'Bill Murray',
  cool: true
})

Plugin Options

Arguments

  • pluginConfig object - Plugin settings
  • pluginConfig.siteId string - Customer.io site Id for client side tracking

Example

customerIOPlugin({
  siteId: '123-xyz'
})

See the full list of analytics provider plugins in the main repo.

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.5

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago