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.

hubspot connect to email as well

Steven Tey1a35b9057b3c
diff --git a/apps/web/lib/integrations/hubspot/track-lead.ts b/apps/web/lib/integrations/hubspot/track-lead.ts
index 4a2e1373ca..c4182ab9e7 100644
--- a/apps/web/lib/integrations/hubspot/track-lead.ts
+++ b/apps/web/lib/integrations/hubspot/track-lead.ts
@@ -97,6 +97,7 @@ export const trackHubSpotLeadEvent = async ({
where: {
projectId: workspace.id,
OR: [
+ { email: contactInfo.properties.email },
{ externalId: contactInfo.id },
{ externalId: contactInfo.properties.email },
],
diff --git a/apps/web/lib/integrations/hubspot/track-sale.ts b/apps/web/lib/integrations/hubspot/track-sale.ts
index f8688659e7..cf5f4aa884 100644
--- a/apps/web/lib/integrations/hubspot/track-sale.ts
+++ b/apps/web/lib/integrations/hubspot/track-sale.ts
@@ -69,6 +69,7 @@ export const trackHubSpotSaleEvent = async ({
where: {
projectId: workspace.id,
OR: [
+ { email: contactInfo.properties.email },
{ externalId: contactInfo.id },
{ externalId: contactInfo.properties.email },
],