title: Google Analytics 4 with React
body: <p>I've been trying to use react-ga package with google analytics 4 in my app. The measurement id doesn't work with it and there is no tracking code in google analytics 4 I can use. Please, I need help!</p>
  <pre><code>import ReactGA from 'react-ga';
  const trackingId = 'G-XXXXXXXXXX'; // UA-XXXXXXXXX-X isn't available in GA4
  ReactGA.initialize(trackingId, options);
  ReactGA.pageview(page);
  </code></pre>