We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2018e0 commit 6834941Copy full SHA for 6834941
1 file changed
src/components/CookieConsent/index.tsx
@@ -23,9 +23,9 @@ const listenForConsent = (state: unknown) => {
23
if (window._ccRun) return;
24
25
window.dataLayer = window.dataLayer || [];
26
- function gtag(arg0: string, arg1: string | Date, arg2?: { [x: string]: string; }) {
27
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
- (window as any).dataLayer.push(arg0, arg1, arg2);
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, prefer-rest-params
+ function gtag(..._args: any[]) {
+ (window as any).dataLayer.push(arguments);
29
}
30
31
gtag('consent', 'default', {
0 commit comments