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": { "googleAnalytics": {
"type": "object", "type": "object",
"properties": { "properties": {
"isEnabled": {
"type": "boolean"
},
"id": { "id": {
"type": "null" "type": "string"
} }
}, },
"required": ["isEnabled", "id"] "required": ["id"]
} }
}, },
"required": ["googleAnalytics"] "required": ["googleAnalytics"]

View File

@ -213,7 +213,6 @@ apps:
analytics: analytics:
vendors: vendors:
googleAnalytics: googleAnalytics:
isEnabled: false
id: null # or "G-XXXXXXXXXX" id: null # or "G-XXXXXXXXXX"
ui: 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} /> <GoogleAnalytics id={String(ANALYTICS_CONFIG.vendors.googleAnalytics.id)} partytown={true} />
) : null ) : null
} }

View File

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