1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-02 11:30:22 +02:00

add event for buy btn

This commit is contained in:
Kushagra Gour
2024-05-03 13:59:12 +05:30
parent 7d50e78548
commit a23e15696a

View File

@@ -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
</A>