Google Analytics in React with Next + Extra Trick
![Google Analytics in React with Next + Extra Trick](https://i0.wp.com/images.pexels.com/photos/590016/pexels-photo-590016.jpeg?w=1200&ssl=1)
Tiempo de lectura: < 1 minuto Today we’re going to add the Google Analytics tag using React and Next. To add the tag, we need to have a Google Analytics account created. We’ll go to our <Head> tag and add: <script async src={`https://www.googletagmanager.com/gtag/js?id=${IDGoogleAnalytics}`} /> Where IDGoogleAnalytics will be our ID: G-XXXXXX Extra: Improve bounce rate performance. With this script, we can … Read more