Docs Sources and campaigns

Tracking

Sources and campaign links

How Fivebar works out where a visitor came from, and how to tag links in newsletters, ads and posts.

How the source of a visit is decided

For every pageview, Fivebar looks for a source in this order and takes the first it finds:

  1. A campaign tag in the page’s address: utm_source, or ref if there is no utm_source. You add these to links yourself; see below.
  2. The website that linked to you. Browsers tell a page which page the visitor came from. Only the site’s name is kept, such as google.com or news.ycombinator.com, never the full address.
  3. Otherwise: Direct.

The source belongs to the whole visit, not to one page. Every page a visitor opens after arriving is counted under the source they arrived with, and so are the goals they reach. Your own website is never a source: a click from one of your pages to another, or between your subdomains, changes nothing.

A visitor who comes back later the same day without a source of their own, from a bookmark for example, stays under the last source they came from. Only someone who never arrived with one that day is Direct. The next day they are a new visitor, and it is decided afresh.

What “Direct” means

Direct is everything that arrives without saying where it came from. That is more than people typing your address:

  • Bookmarks and typed addresses.
  • Links in emails, chat apps, documents and most phone apps.
  • Links from websites or browsers that hide where the visitor came from.

If Direct looks too large, it usually holds your newsletter and your chat links. Tagging those links moves them out of Direct and into a source of their own.

Tag your links

Add ?utm_source= and a name to the end of any link you hand out. Everyone who arrives through that link is counted under that name:

A link in your newsletter
https://example.com/pricing?utm_source=newsletter

The shorter ref does the same:

A link on a partner’s website
https://example.com/pricing?ref=partner-site
  • Use small letters, and the same spelling every time. The name is kept exactly as written: Newsletter and newsletter become two sources.
  • Keep it under 80 characters. Longer names are cut off.
  • A tag wins over the linking website. A tagged link posted on a forum is counted under the tag, not under the forum.
  • If the link already has a ?, add the tag with & instead: ?page=2&utm_source=newsletter.

Sources in the dashboard

The Sources list shows where the visitors of the chosen period came from, busiest first, with the visitors and the pageviews each source brought. Click a source to filter the dashboard by it: you then see everything those visitors did, every page they read and every goal they reached, not just the page they landed on. More about filters.