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
+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] || {