@cokiq/next
v0.1.0
Published
Next.js loader for the COKIQ consent banner.
Maintainers
Readme
@cokiq/next
Legal owner and publisher: Hostao L.L.C, USA.
Next.js loader for the COKIQ consent banner.
App Router:
import { CokiqScript } from '@cokiq/next';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
<CokiqScript siteKey="YOUR_SITE_KEY" />
</body>
</html>
);
}Verification:
- Production page source or network panel should include
/api/s/YOUR_SITE_KEY. - The banner should render after hydration.
- Consent logs should appear after a visitor choice.
