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.

update lead event name for attributeViaPromoCode

Steven Teyd263de25d354
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
index 315ee60e32..11ca4dbe55 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
@@ -622,7 +622,7 @@ async function attributeViaPromoCode({
...rest,
workspace_id: clickEvent.workspace_id || customer.projectId, // in case for some reason the click event doesn't have workspace_id
event_id: nanoid(16),
- event_name: "Sign up",
+ event_name: "Checkout with discount code",
customer_id: customer.id,
metadata: "",
};