0.0.1 • Published 8 months ago
@identitysquare/cookiechimp-segment-wrapper v0.0.1
CookieChimp Segment Wrapper
Install
npm install @identitysquare/cookiechimp-segment-wrapper
npm install @segment/analytics-nextUsage
import { withCookieChimpCMP } from '@identitysquare/cookiechimp-segment-wrapper'
import { AnalyticsBrowser } from '@segment/analytics-next'
export const analytics = new AnalyticsBrowser()
withCookieChimpCMP(analytics).load({
writeKey: '<MY_WRITE_KEY>'
})Always Load Segment
If Segment is a Required vendor, you can enable it to load in opt-in locations before consent is given while ensuring non-required destinations remain blocked.
withCookieChimpCMP(analytics, { alwaysLoadSegment: true }).load({
writeKey: '<MY_WRITE_KEY>'
})0.0.1
8 months ago
0.0.0-development
8 months ago