From ecba8f6bc0a4223dd074101413f6863af1a9402f Mon Sep 17 00:00:00 2001 From: Tal-Ben-Avi Date: Tue, 5 Mar 2024 14:08:13 +0200 Subject: [PATCH] fixing issue --- .../src/components/ProvisionsPopup/ProvisionsPopup.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx b/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx index fa60391e82..0cc835744d 100644 --- a/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx +++ b/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx @@ -14,7 +14,9 @@ const ProvisionsPopup = () => { !isSsr ); const pageView = (target: string) => - window?.dataLayer.push({ event: "page_view", target }); + window.gtag("event", target, { + event_category: "engagement", + }); const gtmEvent = (event: string) => window?.dataLayer.push({ event }); const gtmEventClickReadMore = () => gtmEvent("Provisions_popup_click");