The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update track-lead.ts
Kiran Kd9c7eefd441a
diff --git a/apps/web/lib/integrations/hubspot/track-lead.ts b/apps/web/lib/integrations/hubspot/track-lead.tsindex 1ce968a156..aa85758cb8 100644--- a/apps/web/lib/integrations/hubspot/track-lead.ts+++ b/apps/web/lib/integrations/hubspot/track-lead.ts@@ -34,12 +34,17 @@ export const trackHubSpotLeadEvent = async ({const { properties } = contact;+ if (!properties.dub_id) {+ console.error(`[HubSpot] No dub_id found for contact ${objectId}.`);+ return;+ }+const customerName =[properties.firstname, properties.lastname].filter(Boolean).join(" ") ||null;return await trackLead({- clickId: properties.dub_id || "",+ clickId: properties.dub_id,eventName: "Sign up",customerEmail: properties.email,customerExternalId: properties.email,