dylanfprice / hutmap

The code that powers hutmap.com
Other
3 stars 2 forks source link

Migrate to Google Analytics 4 #38

Closed ezwelty closed 1 year ago

ezwelty commented 1 year ago

Extremely low priority, given that we aren't maintaining this project at the moment. In any case, the Universal Analytics account currently in use will stop collecting data on 1 July 2023. This is the Analytics 4 account that would replace it:

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-B6TJS8QEE3"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-B6TJS8QEE3');
</script>
ezwelty commented 1 year ago

Actually, nevermind, it seems like if we do nothing, Google may generate a new Analytics 4 property that reuses the old site tag. Let's wait and see.