Google Analytics has been deemed illegal by the EU DPA. Undicat is a British company, operated fully on European infrastructure.

React.js analytics

Using Undicat Analtics with React.js requires no extra configuration. If you have some sort of automatic build set-up, you'll need to find a way to get the script onto the page. Otherwise, the following code, added to your index.html page will do the trick.

<script src="https://cdn.undicat.com/analytics.js" spa="auto" apikey="ABCDEFGHIJKL" defer></script>

Further customization

To learn about all the options we offer, read our advanced documentation here.