Skip to content

cdp-analytics-browser 0.0.2

Install from the command line:
Learn more about npm packages
$ npm install @customerio/cdp-analytics-browser@0.0.2
Install via package.json:
"@customerio/cdp-analytics-browser": "0.0.2"

About this version

Customer.io Data Pipelines analytics client for browsers.

Installation

npm install @customerio/cdp-analytics-browser

Usage

import { AnalyticsBrowser } from '@customerio/cdp-analytics-browser'

const analytics = AnalyticsBrowser.load({ writeKey: '<YOUR_WRITE_KEY>' })

analytics.identify('hello world')

document.body?.addEventListener('click', () => {
  analytics.track('document body clicked!')
})

Details


Assets

  • cdp-analytics-browser-0.0.2.tgz

Download activity

  • Total downloads 25,501
  • Last 30 days 916
  • Last week 341
  • Today 0