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.

add dealname to eventName

Kiran K93d85235cdac
diff --git a/apps/web/lib/integrations/hubspot/track-sale.ts b/apps/web/lib/integrations/hubspot/track-sale.ts
index 496cb171be..9db9c8c8d8 100644
--- a/apps/web/lib/integrations/hubspot/track-sale.ts
+++ b/apps/web/lib/integrations/hubspot/track-sale.ts
@@ -69,7 +69,7 @@ export const trackHubSpotSaleEvent = async ({
return await trackSale({
customerExternalId: contactInfo.properties.email,
amount: Number(properties.amount) * 100,
- eventName: `Deal ${properties.dealstage}`,
+ eventName: `${properties.dealname} ${properties.dealstage}`,
paymentProcessor: "custom",
invoiceId: dealId,
workspace,