consent manager

A script that asks visitors for permission before tracking cookies are set, as privacy laws in many regions require.

In more detail

Privacy laws in many regions require consent before tracking cookies are set. The consent script must run before any analytics or advertising scripts.

Example

This is one of the few good reasons to use the next/script beforeInteractive strategy.

Related terms

Taught in

References