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
@@ -43,24 +43,6 @@
color="#5bbad5"
/>
<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>
<% } %>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>