diff --git a/.vscode/astrowind/config-schema.json b/.vscode/astrowind/config-schema.json index 3297fa36..98ad8246 100644 --- a/.vscode/astrowind/config-schema.json +++ b/.vscode/astrowind/config-schema.json @@ -254,9 +254,18 @@ } }, "required": ["id"] + }, + "googleTagManager": { + "type": "object", + "properties": { + "id": { + "type": ["string", "null"] + } + }, + "required": ["id"] } }, - "required": ["googleAnalytics"] + "required": ["googleAnalytics", "googleTagManager"] } }, "required": ["vendors"] diff --git a/vendor/integration/utils/configBuilder.ts b/vendor/integration/utils/configBuilder.ts index f4b5f6dc..fed2e9ba 100644 --- a/vendor/integration/utils/configBuilder.ts +++ b/vendor/integration/utils/configBuilder.ts @@ -75,6 +75,9 @@ export interface AnalyticsConfig { id?: string; partytown?: boolean; }; + googleTagManager: { + id?: string; + }; }; } @@ -185,6 +188,9 @@ const getAnalytics = (config: Config) => { id: undefined, partytown: true, }, + googleTagManager: { + id: undefined, + }, }, };