Integration · For developers

Cookie banner and consent management in React.

Set up CookieOfficer in your React app with a single script. CookieOfficer blocks analytics and advertising tools until consent is given, and the banner stays on screen as users move between views of the app.

Setup methodScript or GTM

React and cookie consent

React is a library for building user interfaces, used for many web applications and customer dashboards.

Third-party libraries and analytics tools in the app set cookies from the first visit. CookieOfficer holds them back until consent is given, and you change the banner texts in the panel, without a new app deployment.

What you get

Why choose CookieOfficer in React?

Fast, simple setup

  • Set up with a script or through Google Tag Manager
  • Automatic website scanning and cookie categorisation
  • Ready-made cookie declaration in many languages

Banner customisation

  • Adjust the colours, font and layout to your website's design
  • Content in the visitor's language
  • Dedicated banner display options for regions, e.g. GDPR in the EU, CCPA in California

Stay compliant without losing data

  • Scripts blocked until the visitor decides
  • Google Consent Mode v2 in Basic and Advanced mode
  • User consent log
Free cookie scanner

See which cookies and trackers
run on your website

Enter a URL and CookieOfficer will scan the website to see which cookies, trackers and other technologies store data on the visitor's device. You will also see which of them run before consent is given.

100% free • No sign-up • Results in 3 minutes

CookieOfficer pricing

Choose a plan that fits your website

Start using CookieOfficer for free or choose a plan that matches the size of your website and the features you need. As your site grows, you can move to a higher plan and unlock more of the platform.

How many subpages does your website have? How do I find this number?
500
Want to know more?

Frequently asked questions about CookieOfficer in React

In the index.html file, in the <head> section, before other scripts. Do not add it in a component, because it would only load after the app starts, which is too late. Setting up CookieOfficer in SPA apps.

Take control of consent and cookies in React

Create an account, add the CookieOfficer script and start collecting user consent.