diff --git a/web/app/components/billing/pricing/plan-item.tsx b/web/app/components/billing/pricing/plan-item.tsx index 7778879b02..db6a64ec86 100644 --- a/web/app/components/billing/pricing/plan-item.tsx +++ b/web/app/components/billing/pricing/plan-item.tsx @@ -141,18 +141,8 @@ const PlanItem: FC = ({ setLoading(true) try { const res = await fetchSubscriptionUrls(plan, isYear ? 'year' : 'month') - if ((window as any).gtag) { - (window as any).gtag('event', 'click_pay_btn', { - plan, - interval: isYear ? 'year' : 'month', - event_callback: () => { - window.location.href = res.url - }, - }) - } - else { - window.location.href = res.url - } + // Adb Block additional tracking block the gtag, so we need to redirect directly + window.location.href = res.url } finally { setLoading(false) diff --git a/web/app/components/billing/upgrade-btn/index.tsx b/web/app/components/billing/upgrade-btn/index.tsx index cc382eb9b9..e53bada514 100644 --- a/web/app/components/billing/upgrade-btn/index.tsx +++ b/web/app/components/billing/upgrade-btn/index.tsx @@ -51,15 +51,12 @@ const UpgradeBtn: FC = ({ (setShowPricingModal as any)() } const onClick = () => { + handleClick() if (loc && (window as any).gtag) { (window as any).gtag('event', 'click_upgrade_btn', { loc, - event_callback: handleClick, }) } - else { - handleClick() - } } if (isPlain)