The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
externalId
Steven Teyb4c92020b302
diff --git a/apps/web/app/api/track/lead/route.ts b/apps/web/app/api/track/lead/route.tsindex 1c481d6f9a..4a980dafed 100644--- a/apps/web/app/api/track/lead/route.ts+++ b/apps/web/app/api/track/lead/route.ts@@ -25,14 +25,14 @@ export const POST = withWorkspaceEdge(clickId,eventName,externalId,- customerId, // deprecated+ customerId, // deprecated (but we'll support it for backwards compatibility)customerName,customerEmail,customerAvatar,metadata,} = trackLeadRequestSchema.parse(await parseRequestBody(req));- const customerExternalId = customerId || externalId;+ const customerExternalId = externalId || customerId;if (!customerExternalId) {throw new DubApiError({diff --git a/apps/web/lib/auth/track-lead.ts b/apps/web/lib/auth/track-lead.tsindex cc35605320..f4fdda4447 100644--- a/apps/web/lib/auth/track-lead.ts+++ b/apps/web/lib/auth/track-lead.ts@@ -15,7 +15,7 @@ export const trackLead = async (user: User) => {await dub.track.lead({clickId,eventName: "Sign Up",- customerId: user.id, // TODO: customerId is deprecated+ externalId: user.id,customerName: user.name,customerEmail: user.email,customerAvatar: user.image,