From 1852a8983a04f024010a2bba446ff20bac3b38e6 Mon Sep 17 00:00:00 2001 From: Tal-Ben-Avi Date: Wed, 15 May 2024 11:20:21 +0300 Subject: [PATCH] check gtm events --- .../NavbarStickyBanner/NavbarStickyBanner.tsx | 12 ++++++++---- workspaces/website/src/utils/utils.ts | 5 ++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/workspaces/website/src/pages/(components)/NavbarStickyBanner/NavbarStickyBanner.tsx b/workspaces/website/src/pages/(components)/NavbarStickyBanner/NavbarStickyBanner.tsx index 5667d144d4..38b8bf9281 100644 --- a/workspaces/website/src/pages/(components)/NavbarStickyBanner/NavbarStickyBanner.tsx +++ b/workspaces/website/src/pages/(components)/NavbarStickyBanner/NavbarStickyBanner.tsx @@ -28,13 +28,17 @@ const NavbarStickyBanner = ({ true ); - const onClose = () => { + const onReadMore = (event: React.MouseEvent) => { + event.stopPropagation(); + gtmEvent("Navbar_banner_read_more"); + }; + + const onClose = (event: React.MouseEvent) => { + event.stopPropagation(); gtmEvent("Navbar_banner_close"); setIsOpenStorage(false); }; - const onReadMore = () => gtmEvent("Navbar_banner_read_more"); - return (