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.

Merge branch 'main' into partner-data

Kiran Kb4f4a15e8662
diff --cc apps/web/lib/middleware/link.ts
index 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 LinkMiddl
const { 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 enabled
if (isBot && proxy) {
return createResponseWithCookie(