Remove unnecessary settings isEnabled in Google Analytics.

This commit is contained in:
prototypa
2023-08-11 09:19:52 -04:00
parent 4d91aaa779
commit 581c9dc49c
4 changed files with 3 additions and 8 deletions

View File

@ -239,14 +239,11 @@
"googleAnalytics": {
"type": "object",
"properties": {
"isEnabled": {
"type": "boolean"
},
"id": {
"type": "null"
"type": "string"
}
},
"required": ["isEnabled", "id"]
"required": ["id"]
}
},
"required": ["googleAnalytics"]

View File

@ -213,7 +213,6 @@ apps:
analytics:
vendors:
googleAnalytics:
isEnabled: false
id: null # or "G-XXXXXXXXXX"
ui:

View File

@ -4,7 +4,7 @@ import { ANALYTICS_CONFIG } from '~/utils/config';
---
{
ANALYTICS_CONFIG?.vendors?.googleAnalytics?.isEnabled && ANALYTICS_CONFIG?.vendors?.googleAnalytics?.id ? (
ANALYTICS_CONFIG?.vendors?.googleAnalytics?.id ? (
<GoogleAnalytics id={String(ANALYTICS_CONFIG.vendors.googleAnalytics.id)} partytown={true} />
) : null
}

View File

@ -63,7 +63,6 @@ apps:
analytics:
vendors:
googleAnalytics:
isEnabled: false
id: null # or "G-XXXXXXXXXX"
ui: