Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #936 from prezly/feature/care-4994-implement-rollu…
Browse files Browse the repository at this point in the history
…pcustomersprezlycom-in-new-themes

[CARE-4994] Feature - Use the rollup domain for Plausible
  • Loading branch information
kudlajz authored May 14, 2024
2 parents 56f28cd + 206191f commit 1283c5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function App({ Component, pageProps }: AppProps) {
localeCode: DEFAULT_LOCALE,
};
const locale = useMemo(() => LocaleObject.fromAnyCode(localeCode), [localeCode]);
const plausibleDomains = [newsroom.plausible_site_id, 'rollup.customers.prezly.com'].join(',');

// `newsroomContextProps` can be undefined, if there was error when fetching the newsroom props.
// This can happen due to connection issues, or incorrect credentials in your .env file.
Expand All @@ -42,6 +43,7 @@ function App({ Component, pageProps }: AppProps) {
gallery={currentGallery}
isEnabled={isTrackingEnabled}
newsroom={newsroom}
plausibleDomain={plausibleDomains}
story={currentStory}
>
<Component {...customPageProps} />
Expand Down

0 comments on commit 1283c5c

Please sign in to comment.