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.

Update backfill-referral-links.ts

Steven Tey1c5649dd0d8e
diff --git a/apps/web/scripts/backfill-referral-links.ts b/apps/web/scripts/backfill-referral-links.ts
index fce6cf767e..15277497b4 100644
--- a/apps/web/scripts/backfill-referral-links.ts
+++ b/apps/web/scripts/backfill-referral-links.ts
@@ -32,9 +32,9 @@ async function main() {
domain: "refer.dub.co",
key: workspace.slug,
url: "https://dub.co",
- externalId: `ws_${workspace.id}`,
- tagIds: ["cm000srqx0004o6ldehod07zc"],
- trackConversion: true,
+ externalId: `ws_${workspace.id}`, // attaching the workspace ID as the externalId for easy updates later on: https://d.to/externalId
+ tagIds: ["cm000srqx0004o6ldehod07zc"], // tagging these links with the "Referral links" tag
+ trackConversion: true, // enable conversion tracking for these links
})),
);