The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Improve HubSpot integration
Steven Tey5c9c78699160
diff --git a/apps/web/lib/integrations/hubspot/schema.ts b/apps/web/lib/integrations/hubspot/schema.tsindex 8e5454af70..0948d9a233 100644--- a/apps/web/lib/integrations/hubspot/schema.ts+++ b/apps/web/lib/integrations/hubspot/schema.ts@@ -26,7 +26,7 @@ export const hubSpotContactSchema = z.object({email: z.string(),firstname: z.string().nullable(),lastname: z.string().nullable(),- dub_id: z.string().nullable(),+ dub_id: z.string().nullish(),}),});diff --git a/apps/web/lib/integrations/hubspot/track-lead.ts b/apps/web/lib/integrations/hubspot/track-lead.tsindex 30ab19cd8d..148dfe8491 100644--- a/apps/web/lib/integrations/hubspot/track-lead.ts+++ b/apps/web/lib/integrations/hubspot/track-lead.ts@@ -86,6 +86,8 @@ export const trackHubSpotLeadEvent = async ({clickId: "",eventName: `Deal ${properties.dealstage}`,customerExternalId: contactInfo.properties.email,+ customerName: `${contactInfo.properties.firstname} ${contactInfo.properties.lastname}`,+ customerEmail: contactInfo.properties.email,mode: "async",workspace,rawBody: payload,