fix externalId

This commit is contained in:
dev.daminik00 2025-12-24 19:43:35 +03:00
parent 408429d2e9
commit 331b9d8547
2 changed files with 2 additions and 9 deletions

View File

@ -14,13 +14,6 @@ interface AnalyticsScriptsProps {
externalId?: string; // visitorId from fingerprint - used for matching across Pixel and CAPI
}
// Declare fbq for TypeScript
declare global {
interface Window {
fbq?: (...args: unknown[]) => void;
}
}
/**
* Компонент для инъекции аналитических скриптов через next/script
*

View File

@ -20,8 +20,8 @@ declare global {
dataLayer: any[];
// Facebook Pixel
fbq: (command: string, event: string, params?: Record<string, any>) => void;
_fbq: any;
fbq?: (command: string, event: string, params?: Record<string, any>) => void;
_fbq?: any;
}
}
/* eslint-enable @typescript-eslint/no-explicit-any */