Skip to content

Commit

Permalink
Merge pull request #2662 from starknet-io/dev
Browse files Browse the repository at this point in the history
Merge dev into production
  • Loading branch information
igalst authored Mar 6, 2024
2 parents b565843 + 32492d0 commit f2539d8
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@ const ProvisionsPopup = () => {
!isSsr
);

const gtmEvent = (event: string) => window?.dataLayer.push({ event });
const gtmEventClickReadMore = () => gtmEvent("Provisions popup click");
const gtmEventClickClose = () => gtmEvent("Provisions popup close");
const gtmEvent = (target: string) =>
window.gtag?.("event", target, { event_category: "engagement" });

const onClose = (event: React.MouseEvent) => {
event.stopPropagation();
gtmEventClickClose();
gtmEvent("Provisions_popup_close");
setIsOpenStorage(false);
};

const onReadMore = (event: React.MouseEvent) => {
event.stopPropagation();
gtmEventClickReadMore();
gtmEvent("Provisions_popup_click");
setIsOpenStorage(false);
};

Expand Down

0 comments on commit f2539d8

Please sign in to comment.