Skip to content

Commit 8d25c98

Browse files
committed
renamed consentString to consentAction.
1 parent 5ea2989 commit 8d25c98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/analytics/src/helpers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ function wrapGtag(
304304
gtagParams as GtagConfigOrEventParams
305305
);
306306
} else if (command === GtagCommand.CONSENT) {
307-
const [consentString, gtagParams] = args;
307+
const [consentAction, gtagParams] = args;
308+
// consentAction can be one of 'default' or 'update'.
308309
gtagCore(
309310
GtagCommand.CONSENT,
310-
consentString,
311+
consentAction,
311312
gtagParams as ConsentSettings
312313
);
313314
} else if (command === GtagCommand.GET) {

0 commit comments

Comments
 (0)