Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
refactor(analytics): upgrade button
Marc Seitz4d1be250f936
diff --git a/components/billing/upgrade-plan-modal.tsx b/components/billing/upgrade-plan-modal.tsxindex 752e932c..1e9b5b57 100644--- a/components/billing/upgrade-plan-modal.tsx+++ b/components/billing/upgrade-plan-modal.tsx@@ -48,7 +48,7 @@ export function UpgradePlanModal({// Track analytics event when modal is openeduseEffect(() => {if (open) {- analytics.capture("Clicked Upgrade Button", {+ analytics.capture("Upgrade Button Clicked", {trigger: trigger,teamId: teamInfo?.currentTeam?.id,});@@ -57,7 +57,7 @@ export function UpgradePlanModal({// Track analytics event when child button is presentconst handleUpgradeClick = () => {- analytics.capture("Clicked Upgrade Button", {+ analytics.capture("Upgrade Button Clicked", {trigger: trigger,teamId: teamInfo?.currentTeam?.id,});