Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEV-19104] Feature - Tracking Consent #1207

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

yuriyyakym
Copy link
Contributor

@yuriyyakym yuriyyakym commented Jan 16, 2025

  • Extract OneTrust Consent from tracking library
  • Integrate new CookieConsent v3
  • Integrate consent choice with tracking
  • Show embeds fallback if there is no consent for third-party cookies
    • Show screenshot if available
    • Show placeholder with an option to configure cookies

This PR is ready, but blocked by prezly/theme-kit-js#843 and prezly/analytics#397

@yuriyyakym yuriyyakym self-assigned this Jan 16, 2025
Copy link

vercel bot commented Jan 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
theme-nextjs-bea-preview ❌ Failed (Inspect) Jan 24, 2025 6:00am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
theme-nextjs-bea-cookbook ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2025 6:00am
theme-nextjs-bea-photography ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2025 6:00am
theme-nextjs-bea-the-good-newsroom ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2025 6:00am

Comment on lines +21 to +22
import { CookieConsentProvider } from '@/modules/CookieConsent';
import { CookieConsent } from '@/modules/CookieConsent/CookieConsent';
Copy link
Contributor Author

@yuriyyakym yuriyyakym Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has to be separate. If I export CookieConsent from module root, I get this error:

image

which is caused by await app().newsroom() usage in CookieConsent component

Comment on lines +34 to +44
<div className={styles.container}>
<IconBan className={styles.icon} />
<div className={styles.title}>Content unavailable</div>
<p className={styles.description}>
<span>It seems this embed couldn&apos;t load due to your cookie preferences.</span>
<span>Please enable all cookies for a seamless experience.</span>
</p>
<Button onClick={updatePreferences} variation="secondary">
Adjust cookie preferences
</Button>
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's going to be weird to have these English only.

Copy link
Member

@pestaa pestaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants