Skip to content
Campaigns

Partner, affiliate and ref links that add up

3 min read · Updated · By the Reveata team

Partners, affiliates, podcast hosts and friends who mention you all send traffic you'd like to credit. Full UTM tags work (see Tag your links), but a short link is easier to read out on a podcast or paste in a bio. This guide shows which short parameters Reveata reads and how each one is classified.

The three short parameters

Reveata reads ?ref=, ?via= and ?source= on the page a visit lands on, and keeps the first one present as the visit's ref. What happens next depends on the parameter and its value:

Link Channel Why
?via=anna Affiliate via is treated as a partner link.
?ref=producthunt Organic social The value is a known source (Product Hunt), so the visit is classified like a visit from it.
?ref=podcast-ep12 Referral Unknown values become referrals, with the value as the source.

A utm_medium of affiliate or partner also puts the visit in Affiliate, whatever the source.

The channel is decided once per visit, from the page it started on. Ad click ids (such as gclid) and a recognised utm_medium win over ref, and a tagged link names its own source, so the referrer of that visit is not used. To put a newsletter in the Newsletter channel, tag it with utm_medium=newsletter rather than a bare ref.

Pick one convention and keep it:

  • Affiliates you pay: ?via=<partner>, so every partner lands in the Affiliate channel and you can rank them by revenue.
  • One-off mentions (a podcast, a guest post): ?ref=<place>-<date or episode>, for example ?ref=podcast-ep12.
  • Sources you post on yourself: use the platform's name, such as ?ref=reddit or ?ref=hn, so the visit joins the other visits from that platform.

Lowercase everything, use dashes instead of spaces, and keep a shared list of the values you've handed out, so two people never invent two names for one partner.

  • Link to a real page, not to a redirect that drops the query string. Open the link in a private window and check that the parameter is still in the address bar when the page loads.
  • Link straight to your site. A link shortener is fine if it keeps the query string.
  • Never add ref or UTM parameters to links between your own pages: the tagged click starts a new visit with a new source and hides where the person really came from.

Credit partners by revenue

Visits are cheap to send. What you want to know is which partner sends people who pay. Once a payment provider is connected and the checkout carries the visitor id (Connect a payment provider), every payment is credited to the visit chosen by your attribution model, and with it to the ref of that visit.

For an affiliate programme, first touch usually matches what partners expect: the partner who introduced the customer gets the credit, even if the customer came back later by typing your address.

Do it in Reveata

In the dashboard

  1. On the Dashboard, open the Sources card and choose the Campaign tab.
  2. In its Tracking parameter select, pick ?ref=. Each value you handed out is a row.
  3. Press the sort toggle so it says Revenue to rank them by money, or click a row to filter the whole dashboard to that partner.

With the API

Revenue by ref value for the last 90 days:

bash
curl -G https://reveata.com/api/v1/websites/example.com/analytics/breakdown \
  -H "Authorization: Bearer $REVEATA_TOKEN" \
  --data-urlencode "dimension=ref" \
  --data-urlencode "metrics=visitors,revenue,new_customers" \
  --data-urlencode "sort=revenue" \
  --data-urlencode "period=last_90d"

With an AI assistant

With the MCP server connected, ask:

Use get_breakdown with the dimension ref to show which partner links brought the most revenue and new customers in the last 90 days.

Try it in your dashboardOpen your website in Reveata and follow the steps above with your own numbers.
Open dashboard →
Was this guide useful?

Next guides