fix: vk pixel
This commit is contained in:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user