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": {
|
"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"]
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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:
|
||||||
|
Reference in New Issue
Block a user