denshoproject / encyc-front

front-end interface for the encyclopedia
Other
1 stars 0 forks source link

Add GA4 code #119

Closed GeoffFroh closed 2 months ago

GeoffFroh commented 1 year ago

Google Analytics is deactivating the UA platform. We need to add the new GA4 code to the site before data collection stops July 1, 2023 (https://support.google.com/analytics/answer/11583528)

Install GA tag manually: https://analytics.google.com/analytics/web/#/a1762741p356730243/admin/streams/table/4681826325

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

  gtag('config', 'G-R86RWB2BM9');
</script>
gjost commented 1 year ago

Added in hotfix commit 48c71e3 and merged in to develop and master.

gjost commented 1 year ago

Oops, that was ddr-public that got fixed. Just a couple minutes...