From 61cbf3c39598319888f98c034593943b3f8f37b1 Mon Sep 17 00:00:00 2001 From: Anton Shalimov Date: Mon, 29 Jul 2024 18:11:47 +0300 Subject: [PATCH] fix: matomo event --- shared/wallet/l2-fallback/l2-fallback.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/shared/wallet/l2-fallback/l2-fallback.tsx b/shared/wallet/l2-fallback/l2-fallback.tsx index ef1fe8eac..14a0650e3 100644 --- a/shared/wallet/l2-fallback/l2-fallback.tsx +++ b/shared/wallet/l2-fallback/l2-fallback.tsx @@ -17,6 +17,7 @@ import { CHAINS, L2_CHAINS } from 'consts/chains'; import { MATOMO_CLICK_EVENTS_TYPES } from 'consts/matomo-click-events'; import { L2FallbackWalletStyle, TextStyle, ButtonStyle } from './styles'; +import { trackMatomoEvent } from '../../../utils/track-matomo-event'; export type L2FallbackComponent = FC<{ textEnding: string } & BlockProps>; @@ -56,11 +57,15 @@ export const L2Fallback: L2FallbackComponent = (props) => { Learn about Lido on L2 opportunities on {l2ChainName} network or switch to Ethereum {defaultChainName} {props.textEnding} - - Lido on L2 opportunities + + + trackMatomoEvent(MATOMO_CLICK_EVENTS_TYPES.lidoOnL2Opportunities) + } + > + Lido on L2 opportunities + );