Skip to main content
Check the consent status of the visitor when using the consent banner.

Usage

Parameters

The callback function receives a consent object with information about the visitor’s consent status:
  • allowed (boolean): Whether the visitor has granted consent.
  • Additional properties may be available depending on the consent banner configuration.

Use Cases

  • Conditionally enable third-party analytics based on consent.
  • Show/hide certain features that require tracking.
  • Customize user experience based on privacy preferences.
  • Comply with GDPR and other privacy regulations.
Last modified on April 17, 2026