For React applications, you can add Visitors analytics in several ways depending on your setup.
Replace YOUR_TOKEN with your project token.
The simplest approach is to add the script tag directly to your public/index.html file.
If you're using React Helmet for managing document head, you can add the script there:
For more control, you can load the script dynamically: