Skip to content
Campaigns

Tag your links so every visit has a source

2 min read · Updated · By the Reveata team

When someone clicks a link in a newsletter, an app or a private chat, the browser often sends no referrer. The visit lands in Direct, and you lose the one thing you wanted to know: where it came from. Tagging your links fixes that.

The five UTM parameters

Add them to the end of any link you control:

text
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=october-launch
Parameter Answers Example
utm_source Who sent the visit? newsletter, producthunt, twitter
utm_medium What kind of link was it? email, social, cpc, affiliate
utm_campaign Which push was it part of? october-launch
utm_term Which keyword (paid search)? revenue analytics
utm_content Which link or creative? header-button

Only utm_source is really needed. Add utm_medium so the visit lands in the right channel, and utm_campaign when you want to compare pushes.

Shorter: ref, via and source

For quick links, ?ref= works too, as do ?via= and ?source=. Reveata reads the first one present:

text
https://example.com/?ref=podcast

Ad click ids

Ad platforms add their own ids to the links they send, such as gclid for Google Ads or fbclid for Meta. Reveata recognises the common ones and puts those visits in the paid channel of that platform, even when you did not add UTM tags.

A naming scheme that stays tidy

  • Lowercase everything. Newsletter and newsletter would otherwise be two sources.
  • Use one word per source, and write the list down so the whole team uses the same names.
  • Use dashes, not spaces, in campaign names: october-launch.
  • Never tag internal links. A tagged link between two pages of your own site starts a new attribution and hides the real source.

Check your tags

Open one of your tagged links in a private window, then look at the realtime view and the sources report: the visit should show the source you set. If it shows Direct, the tags were dropped, often by a redirect that does not keep query parameters.

Do it in Reveata

In the dashboard

  1. On the Dashboard, open the Sources card and choose the Campaign tab.
  2. Use its select to switch between ?utm_campaign=, ?utm_source=, ?utm_medium=, ?utm_term=, ?utm_content= and ?ref=.
  3. Press the sort toggle until it says Revenue to rank your campaigns by money. For short partner links, see Partner, affiliate and ref links that add up.

With the API

Revenue by campaign 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=utm_campaign" \
  --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 on utm_source for the last 30 days and list any sources that look like the same thing written two ways, such as different capitalisation.

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