dubinc / dub

Open-source link management infrastructure
https://dub.co
GNU Affero General Public License v3.0
16.83k stars 1.72k forks source link

Dub Referrer UTM Tracking Parameter (Restricted to Dub Only) #847

Open abass opened 2 months ago

abass commented 2 months ago

I WISH there was a way to push over a tracking parameter to Dub.

For example, we just launched a find your stack quiz on our site using Typeform: efficient.app/quiz

We give the result then they can click the Dub affiliate link, but we have no idea on our site it was clicked, we know the link was clicked in Dub, but don't know it was from the quiz.

Same with our newsletter, if we don't link to our website, we lose all tracking information. If we send them through Dub to an external URL, it'll just track the link click in Dub as "unknown", but can't we tell you it was from our Newsletter before you do the redirect?

So wish there was a Dub specific UTM, like adding ?dref= or ?dubref= newsletter or quiz or something and have it just log that in Dub and then remove it (not passing it through to the end URL), so that Dub can track where the click came from.

I'd envision it showing something like this: CleanShot 2024-05-01 at 16 23 31

Same with on YouTube and a myriad of other areas, if we could do ?dref=description or heck, even a video and/or the timestamp of a video, that would be insanely helpful.

Want Dub to get more details so we can see them, but don't want to pass them through to the affiliate site on the other end (as it's useless to them and also is our own IP)

linear[bot] commented 2 months ago

ENG-301 Dub Referrer UTM Tracking Parameter (Restricted to Dub Only)

aliamerj commented 1 month ago

Hello @steven-tey, Are there currently any plans to implement this feature? If so, can I work on it

steven-tey commented 2 weeks ago

Note: Allow fetching the stats for each dRef param that's passed (e.g. top_drefs) via the API + display it in the dashboard (same category as Referers)