Skip to content

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.tsx
index 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 opened
useEffect(() => {
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 present
const handleUpgradeClick = () => {
- analytics.capture("Clicked Upgrade Button", {
+ analytics.capture("Upgrade Button Clicked", {
trigger: trigger,
teamId: teamInfo?.currentTeam?.id,
});