Skip to content

Commit

Permalink
Merge pull request #907 from prezly/feature/care-4941-support-for-one…
Browse files Browse the repository at this point in the history
…trust-cookie

[CARE-4941] Feature - Support for OneTrust cookie integration
  • Loading branch information
e1himself authored May 10, 2024
2 parents 988db04 + c706213 commit 45ee5b1
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 92 deletions.
4 changes: 2 additions & 2 deletions modules/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Analytics, useAnalytics } from '@prezly/analytics-nextjs';
import { Tracking, useAnalytics } from '@prezly/analytics-nextjs';
import { Notification, Story } from '@prezly/sdk';
import {
PageSeo,
Expand Down Expand Up @@ -94,7 +94,7 @@ function Layout({ children, description, imageUrl, title, hasError }: PropsWithC

return (
<>
<Analytics />
<Tracking />
<Branding newsroom={newsroom} />
<PageSeo
title={title}
Expand Down
139 changes: 58 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"@hcaptcha/react-hcaptcha": "1.9.3",
"@headlessui/react": "1.7.18",
"@playwright/test": "^1.33.0",
"@prezly/analytics-nextjs": "2.1.4",
"@prezly/content-renderer-react-js": "0.36.2",
"@prezly/sdk": "18.3.0",
"@prezly/analytics-nextjs": "3.0.0",
"@prezly/content-renderer-react-js": "0.37.0",
"@prezly/sdk": "21.0.0",
"@prezly/story-content-format": "0.64.0",
"@prezly/theme-kit-core": "7.2.0",
"@prezly/theme-kit-intl": "7.2.0",
"@prezly/theme-kit-nextjs": "7.3.0",
"@prezly/theme-kit-core": "7.4.0",
"@prezly/theme-kit-intl": "7.4.0",
"@prezly/theme-kit-nextjs": "7.4.0",
"@prezly/uploadcare": "2.4.4",
"@prezly/uploadcare-image": "0.3.2",
"@react-hookz/web": "14.7.1",
Expand Down
6 changes: 3 additions & 3 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AnalyticsContextProvider } from '@prezly/analytics-nextjs';
import { AnalyticsProvider } from '@prezly/analytics-nextjs';
import { DEFAULT_LOCALE, LocaleObject } from '@prezly/theme-kit-core';
import type { PageProps } from '@prezly/theme-kit-nextjs';
import { NewsroomContextProvider } from '@prezly/theme-kit-nextjs';
Expand Down Expand Up @@ -38,14 +38,14 @@ function App({ Component, pageProps }: AppProps) {
defaultLocale={DEFAULT_LOCALE}
messages={translations}
>
<AnalyticsContextProvider
<AnalyticsProvider
gallery={currentGallery}
isEnabled={isTrackingEnabled}
newsroom={newsroom}
story={currentStory}
>
<Component {...customPageProps} />
</AnalyticsContextProvider>
</AnalyticsProvider>
</IntlProvider>
</NewsroomContextProvider>
);
Expand Down

0 comments on commit 45ee5b1

Please sign in to comment.