How to install the cookie banner on version Next.js 13 and above?
Last updated on May 20, 2026
import Script from 'next/script';<Script
src={`https://cdn-cookieyes.com/client_data/XXXXXXXX/script.js`}>
</Script>Note:
You need to replace ‘XXXXXXXX’ with your CookieYes website key.

strategy="beforeInteractive"
Note:
CookieYes does not support the crossorigin attribute, as it may cause caching issues when used with the CookieYes script. If your website automatically adds this attribute when using the Next.js script component, we recommend using the standard <script> tag provided by CookieYes (installation script) instead to ensure that updates are applied immediately.