View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
18197Feature requestsSurvey takingpublic2022-06-17 18:27
Reportergabrieljenik Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary18197: Allow GA4 tracking
Description

GA4 setup code is different than UA.

GA4

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

  gtag('config', 'G-4J62DGSRE5');
</script>

UA

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

  gtag('config', 'UA-163401370-1');
</script>

We might need to identify which JS code to inject depending on the start of the tag.
If not, we might need to add a google analytics type selector on survey and global settings.

TagsNo tags attached.
Bug heat0

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-06-17 18:27 gabrieljenik New Issue