fix: vk pixel

This commit is contained in:
IlyaDoronin 2024-05-10 15:06:12 +03:00
parent c537018c21
commit 09978ab7cc

@ -8,11 +8,11 @@ type MetricsGoal = {
goal: string;
};
type ExtendedWindow = Window & { _tmp?: MetricsGoal[] };
type ExtendedWindow = Window & { _tmr?: MetricsGoal[] };
const sendMetrics = (vkPixelId: number | undefined, goal: string) => {
if (vkPixelId) {
(window as ExtendedWindow)._tmp?.push({
(window as ExtendedWindow)._tmr?.push({
type: "reachGoal",
id: vkPixelId,
goal,