Cookie Modal Test Page

Click the button below to open the cookie preferences modal.

How it works

  • • The cookie modal can be opened from anywhere in the application using the useCookie hook
  • • Users can accept all, reject all, or customize their cookie preferences
  • • Preferences are stored in localStorage
  • • The modal will not show again if the user has already made a choice
  • • Links to Cookie Policy and Privacy Policy are included

Cookie Consent Demo

Current consent status:No Consent

This component demonstrates how to:

  • Check the current cookie consent status
  • Listen for consent changes
  • Open the cookie preferences modal programmatically

Analytics Demo

Analytics status:Disabled

Events will only be tracked if you've given consent for analytics cookies.

This component demonstrates how to:

  • Initialize analytics based on cookie consent
  • Track events only when consent is given
  • Respect user privacy preferences