Remove unnecessary settings isEnabled in Google Analytics.
This commit is contained in:
7
.vscode/astrowind/config-schema.json
vendored
7
.vscode/astrowind/config-schema.json
vendored
@ -239,14 +239,11 @@
|
||||
"googleAnalytics": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"type": "null"
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["isEnabled", "id"]
|
||||
"required": ["id"]
|
||||
}
|
||||
},
|
||||
"required": ["googleAnalytics"]
|
||||
|
@ -213,7 +213,6 @@ apps:
|
||||
analytics:
|
||||
vendors:
|
||||
googleAnalytics:
|
||||
isEnabled: false
|
||||
id: null # or "G-XXXXXXXXXX"
|
||||
|
||||
ui:
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -63,7 +63,6 @@ apps:
|
||||
analytics:
|
||||
vendors:
|
||||
googleAnalytics:
|
||||
isEnabled: false
|
||||
id: null # or "G-XXXXXXXXXX"
|
||||
|
||||
ui:
|
||||
|
Reference in New Issue
Block a user