Skip to content

Commit

Permalink
adding gtm to ListCardItem and ImageIconCard
Browse files Browse the repository at this point in the history
  • Loading branch information
TalBenAvi committed May 6, 2024
1 parent ed77fd4 commit 54f0d88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion workspaces/website/src/components/Card/ImageIconCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export const ImageIconCard = ({
}}
>
<Card
onClick={() => console.log("edfdfd")}
overflow="hidden"
borderRadius={{
base: "24px",
Expand Down
12 changes: 10 additions & 2 deletions workspaces/website/src/components/Card/ListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,15 @@ export const ListCard = ({

return (
<Box maxW="5xl">
<LinkBox sx={{ textDecoration: "none!important", cursor: "pointer" }}>
<LinkBox
sx={{ textDecoration: "none!important", cursor: "pointer" }}
onClick={() =>
gtmEvent(
(title || "List_card").replace(/ /g, "_"),
EVENT_CATEGORY.BUTTON_CLICK
)
}
>
<CardGradientBorder padding="0" borderRadius={{ base: "16px" }}>
<Box
w={{ base: "full" }}
Expand Down Expand Up @@ -245,4 +253,4 @@ export const ListCard = ({
</LinkBox>
</Box>
);
};
};

0 comments on commit 54f0d88

Please sign in to comment.