Remove app.googleAnalyticsTrackingId and related scripts

The analytics plugin removed the need for app.googleAnalyticsTrackingId and the script tags in packages/app/public/index.html. More context: https://discord.com/channels/687207715902193673/1007303347914690610/1014108244664401952

Signed-off-by: Elizabeth Hobbs <elizabeth.hobbs94@gmail.com>
This commit is contained in:
Elizabeth Hobbs
2022-11-03 14:02:15 -07:00
parent f46f2f084d
commit df21bbd4ad
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>