title: Google Analytics with react-ga library
body: <p>I put in the initialization code, but it only runs once for one page. How do I get the google tracker to fire for multiple pages in the app?</p>
  
  <p>In App.js</p>
  
  <pre><code> ReactGA.initialize("UA-XXXXXXXXX-1");
   let baseUrl = window.location.pathname;
   ReactGA.pageview(baseUrl); 
  </code></pre>