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.
npm install @customerio/cdp-analytics-browser
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!')
})