Skip to content

Commit

Permalink
feat: add analytics event for closing CoW AMM banner (#4790)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Aug 14, 2024
1 parent 87ee5aa commit 46add78
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/cowswap-frontend/src/common/pure/CoWAMMBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,16 @@ export function CoWAmmBanner() {
return ClosableBanner('cow_amm_banner', (close) => (
<BannerWrapper>
<i></i>
<CloseButton size={24} onClick={close} />
<CloseButton
size={24}
onClick={() => {
cowAnalytics.sendEvent({
category: 'CoW Swap',
action: 'CoW AMM Banner CTA Closed',
})
close()
}}
/>
<div>
<Title>Now live: the first MEV-capturing AMM</Title>
<Description>
Expand Down

0 comments on commit 46add78

Please sign in to comment.