Skip to content

CookieYes added in nextjs. Cookie Consent Solution for GDPR + IAB & CCPA Compliance

Notifications You must be signed in to change notification settings

Sooraj-s-98/cookieyes-nextjs-13

Repository files navigation

Cookie consent

You can implement cookie consent on your website in just 3 simple steps.

Sign up on CookieYes for free Choose your cookie consent banner layout Copy the cookie banner code and paste it to your website

Guide: How to add a cookie banner on a nextjs website

To load a script for all routes, import next/script and include the script directly in pages/_app.js . This script will load and execute when any route in your application is accessed. Next.js will ensure the script will only load once, even if a user navigates between multiple pages.

Cookie consent is the legal requirement to obtain consent from website visitors before setting cookies on their devices. Consent is collected via a cookie banner that enables visitors to accept or decline cookies on the website.

Privacy regulations like the GDPR in the EU and UK, LGPD in Brazil, POPIA in South Africa and similar laws around the world require businesses to get consent for collecting a user’s personal data. As cookies and trackers can store personal data and be used to identify an individual, they are considered part of personal data.