mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-02 19:37:29 +02:00
add event for buy btn
This commit is contained in:
@@ -8,6 +8,7 @@ import { useCheckout } from '../hooks/useCheckout';
|
|||||||
import { Text } from './Text';
|
import { Text } from './Text';
|
||||||
import { Icon } from './Icons';
|
import { Icon } from './Icons';
|
||||||
import { showConfetti } from '../utils';
|
import { showConfetti } from '../utils';
|
||||||
|
import { trackEvent } from '../analytics';
|
||||||
|
|
||||||
const checkoutIds = {
|
const checkoutIds = {
|
||||||
monthly: '1601bc00-9623-435b-b1de-2a70a2445c13',
|
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"
|
class="btn btn--pro lemonsqueezy-button d-f jc-c ai-c"
|
||||||
style="gap:0.2rem"
|
style="gap:0.2rem"
|
||||||
href={`https://web-maker.lemonsqueezy.com/checkout/buy/${checkoutIds.generic}?embed=1&checkout[custom][userId]=${user?.uid}`}
|
href={`https://web-maker.lemonsqueezy.com/checkout/buy/${checkoutIds.generic}?embed=1&checkout[custom][userId]=${user?.uid}`}
|
||||||
|
onClick={() => {
|
||||||
|
trackEvent('ui', 'buyBtnClick');
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
Go PRO
|
Go PRO
|
||||||
</A>
|
</A>
|
||||||
|
Reference in New Issue
Block a user