ianleggett / TinanceUI

0 stars 0 forks source link

Add Google analytics to analysis website traffic #67

Open meditations opened 3 years ago

meditations commented 3 years ago

Please update tinance-ui site with the following

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0XH19KPGCF"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-0XH19KPGCF');
</script>

As per instructions: google-analytics-tinance

https://analytics.google.com/analytics/web/provision/#/provision

laozhu commented 2 years ago

A new line REACT_APP_GA_TRACKING_ID="G-0XH19KPGCF" should be added to .env file.