Merge pull request #14449 from elizabeth-a-hobbs/google-analytics-cleanup

Remove app.googleAnalyticsTrackingId and related scripts
This commit is contained in:
Johan Haals
2022-11-11 10:14:18 +01:00
committed by GitHub
9 changed files with 44 additions and 53 deletions
+1 -18
View File
@@ -44,24 +44,7 @@
/>
<title><%= config.getString('app.title') %></title>
<% if (config.has('app.googleAnalyticsTrackingId')) { %>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=<%= config.getString('app.googleAnalyticsTrackingId') %>"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag(
'config',
'<%= config.getString("app.googleAnalyticsTrackingId") %>',
);
</script>
<% } %> <% if (config.has('app.datadogRum')) { %>
<% if (config.has('app.datadogRum')) { %>
<script>
(function (h, o, u, n, d) {
h = h[d] = h[d] || {