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 partner-data
Kiran Kb4f4a15e8662
diff --cc apps/web/lib/middleware/link.tsindex ce67f27718,c552d867f9..82cb124289--- a/apps/web/lib/middleware/link.ts+++ b/apps/web/lib/middleware/link.ts@@@ -280,12 -264,6 +287,12 @@@ export default async function LinkMiddlconst { country } =process.env.VERCEL === "1" && req.geo ? req.geo : LOCALHOST_GEO_DATA;+ // we only pass the clickId if:+ // - trackConversion is enabled- // - not a partner link (TODO: add this later) !isPartnerLink++ // - not a partner link (TODO: add this later) !isPartnerLink+ // - there is a clickId+ const shouldPassClickId = trackConversion && clickId;+// rewrite to proxy page (/proxy/[domain]/[key]) if it's a bot and proxy is enabledif (isBot && proxy) {return createResponseWithCookie(