From 6271954f457faa175549df2fd33417a5f2927853 Mon Sep 17 00:00:00 2001 From: matthew Date: Thu, 20 Oct 2022 00:13:47 +0400 Subject: [PATCH] fix metrics --- searching-front/app/core/helpers/metrika.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/searching-front/app/core/helpers/metrika.ts b/searching-front/app/core/helpers/metrika.ts index c774f98..22180a0 100644 --- a/searching-front/app/core/helpers/metrika.ts +++ b/searching-front/app/core/helpers/metrika.ts @@ -6,6 +6,8 @@ export const count = (event: string) => { if (isDev) { return } - yaCounter90644479.reachGoal(event) + try { + yaCounter90644479.reachGoal(event) + } catch (e) {} gtag("event", event) }