We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e60188d commit 1b2ce3aCopy full SHA for 1b2ce3a
packages/analytics/src/helpers.ts
@@ -304,7 +304,8 @@ function wrapGtag(
304
gtagParams as GtagConfigOrEventParams
305
);
306
} else if (command === GtagCommand.CONSENT) {
307
- const [gtagParams] = args;
+ // If CONSENT, second arg must be 'default' or 'update'
308
+ const [gtagMethod, gtagParams] = args;
309
gtagCore(GtagCommand.CONSENT, 'update', gtagParams as ConsentSettings);
310
} else if (command === GtagCommand.GET) {
311
const [measurementId, fieldName, callback] = args;
0 commit comments