Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

only show conversions paywall on free / pro plans

Steven Tey58657d3cf961
diff --git a/apps/web/ui/analytics/main.tsx b/apps/web/ui/analytics/main.tsx
index 99b37dc719..49323bb0b8 100644
--- a/apps/web/ui/analytics/main.tsx
+++ b/apps/web/ui/analytics/main.tsx
@@ -33,6 +33,7 @@ export default function Main() {
saleUnit,
view,
} = useContext(AnalyticsContext);
+ const { plan } = useWorkspace();
const { queryParams } = useRouterStuff();
const tabs = useMemo(
@@ -67,7 +68,8 @@ export default function Main() {
const tab = tabs.find(({ id }) => id === selectedTab) ?? tabs[0];
const showPaywall =
- (tab.conversions || view === "funnel") && !conversionsEnabled;
+ (tab.conversions || view === "funnel") &&
+ (plan === "free" || plan === "pro");
return (
<div className="w-full overflow-hidden bg-white">