Skip to content

Commit

Permalink
update confix schema and configBuilder.ts for GTM
Browse files Browse the repository at this point in the history
  • Loading branch information
thomHayner committed Aug 27, 2024
1 parent c68dab6 commit d62b6f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .vscode/astrowind/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,18 @@
}
},
"required": ["id"]
},
"googleTagManager": {
"type": "object",
"properties": {
"id": {
"type": ["string", "null"]
}
},
"required": ["id"]
}
},
"required": ["googleAnalytics"]
"required": ["googleAnalytics", "googleTagManager"]
}
},
"required": ["vendors"]
Expand Down
6 changes: 6 additions & 0 deletions vendor/integration/utils/configBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export interface AnalyticsConfig {
id?: string;
partytown?: boolean;
};
googleTagManager: {
id?: string;
};
};
}

Expand Down Expand Up @@ -185,6 +188,9 @@ const getAnalytics = (config: Config) => {
id: undefined,
partytown: true,
},
googleTagManager: {
id: undefined,
},
},
};

Expand Down

0 comments on commit d62b6f1

Please sign in to comment.