diff --git a/src/coreWebVitals.README.md b/src/coreWebVitals.README.md index 1bf1a611..1771bfbd 100644 --- a/src/coreWebVitals.README.md +++ b/src/coreWebVitals.README.md @@ -17,7 +17,7 @@ import { initCoreWebVitals, getCookie } from '@guardian/libs'; // browserId & pageViewId are needed to join up the data downstream. const init: InitCoreWebVitalsOptions = { browserId : getCookie({ name: 'bwid', shouldMemoize: true}), - pageViewId: guardian.ophan.config.pageViewId, + pageViewId: guardian.config.ophan.pageViewId, // Whether to use CODE or PROD endpoints. isDev: window.location.hostname !== 'www.theguardian.com', diff --git a/src/coreWebVitals.ts b/src/coreWebVitals.ts index 54f36d87..f5f26131 100644 --- a/src/coreWebVitals.ts +++ b/src/coreWebVitals.ts @@ -145,7 +145,7 @@ export const bypassCoreWebVitalsSampling = (team?: TeamName): void => { * @param init - the initialisation options * @param init.isDev - used to determine whether to use CODE or PROD endpoints. * @param init.browserId - identifies the browser. Usually available via `getCookie({ name: 'bwid' })`. Defaults to `null` - * @param init.pageViewId - identifies the page view. Usually available on `guardian.ophan.pageViewId`. Defaults to `null` + * @param init.pageViewId - identifies the page view. Usually available on `guardian.config.ophan.pageViewId`. Defaults to `null` * * @param init.sampling - sampling rate for sending data. Defaults to `0.01`. *