From a23e15696aa940dff89f650374e376bb36689047 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Fri, 3 May 2024 13:59:12 +0530 Subject: [PATCH] add event for buy btn --- src/components/Pro.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Pro.jsx b/src/components/Pro.jsx index 55f41d3..0f956cd 100644 --- a/src/components/Pro.jsx +++ b/src/components/Pro.jsx @@ -8,6 +8,7 @@ import { useCheckout } from '../hooks/useCheckout'; import { Text } from './Text'; import { Icon } from './Icons'; import { showConfetti } from '../utils'; +import { trackEvent } from '../analytics'; const checkoutIds = { monthly: '1601bc00-9623-435b-b1de-2a70a2445c13', @@ -69,6 +70,9 @@ export function Pro({ user, onLoginClick }) { class="btn btn--pro lemonsqueezy-button d-f jc-c ai-c" style="gap:0.2rem" href={`https://web-maker.lemonsqueezy.com/checkout/buy/${checkoutIds.generic}?embed=1&checkout[custom][userId]=${user?.uid}`} + onClick={() => { + trackEvent('ui', 'buyBtnClick'); + }} > Go PRO