Socket
Book a DemoInstallSign in
Socket

@customerio/cdp-analytics-browser

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@customerio/cdp-analytics-browser

Customer.io Data Pipelines analytics client for browsers.

latest
Source
npmnpm
Version
0.3.8
Version published
Weekly downloads
33K
-17.45%
Maintainers
2
Weekly downloads
 
Created
Source

Customer.io Data Pipelines analytics client for browsers.

Installation

npm install @customerio/cdp-analytics-browser

Usage

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

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

cioanalytics.identify('hello world')

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

Other Regions

If you're in our EU data center you will need to specify an alternate endpoint:

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

const cioanalytics = AnalyticsBrowser.load({
  cdnURL: 'https://cdp-eu.customer.io',
  writeKey: '<YOUR_WRITE_KEY>'
})

cioanalytics.identify('hello world')

FAQs

Package last updated on 17 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts