The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into log-track-endpoints
Steven Tey304b627e5c18
diff --cc apps/web/app/api/track/lead/route.tsindex 59ec8ab839,889fe88c40..48ea19d139--- a/apps/web/app/api/track/lead/route.ts+++ b/apps/web/app/api/track/lead/route.ts@@@ -40,8 -37,9 +40,9 @@@ export const POST = withWorkspacecustomerAvatar,metadata,mode = "async", // Default to async mode if not specified- } = trackLeadRequestSchema.parse(await parseRequestBody(req));+ } = trackLeadRequestSchema.parse(body);+ const stringifiedEventName = eventName.toLowerCase().replace(" ", "-");const customerExternalId = externalId || customerId;const finalCustomerName =customerName || customerEmail || generateRandomName();