title: Adding Google Analytics to React
body: <p>I am trying to add Google Analytics to a React Web Application.</p>
  
  <p>I know how to do it in HTML/CSS/JS sites and I have integrated it in an AngularJS app too. But, I'm not quite sure how to go about it when it comes to react.</p>
  
  <p>With HTML/CSS/JS, I had just added it to every single page.</p>
  
  <p>What I had done with AngularJS was adding GTM and GA script to index.html and added UA-labels to the HTML divs (and buttons) to get clicks. </p>
  
  <p><strong>How can I do that with React?</strong></p>
  
  <p>Please help!</p>