Skip to content

Commit 13d79f4

Browse files
author
Bernard Gatt
committed
Merge branch 'main' into feature/INAPP-13467
* main: Update README for cdp-analytics-browser. (#55)
2 parents 34428b6 + ff9973e commit 13d79f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/browser/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ npm install @customerio/cdp-analytics-browser
1111
```ts
1212
import { AnalyticsBrowser } from '@customerio/cdp-analytics-browser'
1313

14-
const analytics = AnalyticsBrowser.load({ writeKey: '<YOUR_WRITE_KEY>' })
14+
const cioanalytics = AnalyticsBrowser.load({ writeKey: '<YOUR_WRITE_KEY>' })
1515

16-
analytics.identify('hello world')
16+
cioanalytics.identify('hello world')
1717

1818
document.body?.addEventListener('click', () => {
19-
analytics.track('document body clicked!')
19+
cioanalytics.track('document body clicked!')
2020
})
2121
```
2222

@@ -27,10 +27,10 @@ If you're in our [EU data center](https://customer.io/docs/accounts-and-workspac
2727
```ts
2828
import { AnalyticsBrowser } from '@customerio/cdp-analytics-browser'
2929

30-
const analytics = AnalyticsBrowser.load({
30+
const cioanalytics = AnalyticsBrowser.load({
3131
cdnURL: 'https://cdp-eu.customer.io',
3232
writeKey: '<YOUR_WRITE_KEY>'
3333
})
3434

35-
analytics.identify('hello world')
35+
cioanalytics.identify('hello world')
3636
```

0 commit comments

Comments
 (0)