Skip to content
Social networks

Mastodon traffic: track visitors from every instance

3 min read · Updated · By the Reveata team

Short answerReveata recognises three Mastodon servers by referrer, mastodon.social, mastodon.online and mstdn.social, and counts them in Organic social. Visits from any other instance arrive as Referral under that instance's host, so tag your links with ref=mastodon to group every instance as one source.

Mastodon is not one website. It is thousands of independently run servers, called instances, that talk to each other. A post you publish on one instance is read by people on many others, and each reader clicks your link from their own server's address. That is the single most important fact for measuring Mastodon traffic.

What Reveata matches

Field Value
Display name Mastodon
Channel Organic social
Referrer domains mastodon.social, mastodon.online, mstdn.social
Alias for tagged links mastodon

The referrer host is lower-cased, www. is removed, and the host must equal one of those domains or be a subdomain of one. These are large general-purpose servers. Every other instance is unknown to Reveata.

Why most Mastodon visits may show up as Referral

A reader on, say, a regional or topic-based instance clicks your link from that instance's web interface. Their browser sends that instance's origin as the referrer. Reveata does not recognise the host, so the visit is classified as Referral, with the instance's host as the source. Your Referral list can then show a long tail of Mastodon servers, each with a few visits.

There is no reliable way to tell from a host name alone that a server runs Mastodon, so Reveata does not guess. Instead, tag your links.

Separately, links opened from Mastodon mobile and desktop apps usually have no web page to refer from. With no referrer and no tag, those visits count as Direct. Even web visits share only the server's origin by default, not the post's address (MDN: Referrer-Policy (opens in a new tab)).

One tag for every instance

Because a tagged link names its own source, the instance a reader clicked from no longer matters:

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

Every click on that link is counted as Mastodon in Organic social, whether it came from mastodon.social, a small community server or an app. For more detail per post, use UTM parameters:

text
https://example.com/release-notes?utm_source=mastodon&utm_medium=social&utm_campaign=v2-release

The value mastodon is matched without regard to case. Federation copies your post, including the full link, to other servers, so the tag travels with it. More on short tags in Partner, affiliate and ref links that add up.

Find untagged instances

To see older or untagged Mastodon visits, open the Sources card, click Referral on the Channel tab, then the Referrer tab. Instance hosts appear as rows. If you recognise several, you can combine them with an "or" filter on referrer (Filters and segments) and save it as a segment.

See Mastodon revenue

  1. Connect a payment provider and pass the visitor id at checkout.
  2. Filter the dashboard to Organic social, then sort the Campaign tab (?ref= or ?utm_source=) by Revenue.

From the API, tagged and recognised visits share the source name:

bash
curl -G https://reveata.com/api/v1/websites/example.com/analytics/breakdown \
  -H "Authorization: Bearer $REVEATA_TOKEN" \
  --data-urlencode "dimension=entry_page" \
  --data-urlencode "metrics=visitors,revenue,revenue_per_visitor" \
  --data-urlencode "period=last_90d" \
  --data-urlencode 'filters=[{"dimension":"source","operator":"is","values":["Mastodon"]}]'

Frequently asked questions

Why does my Mastodon post show dozens of different referrers?

Each reader clicked from their own instance. Reveata lists each instance's host separately, and only mastodon.social, mastodon.online and mstdn.social are grouped under Mastodon automatically. Tag your link to group the rest.

Will tagging change the channel to something other than social?

No, as long as utm_medium is left out or set to social. The mastodon value is a known social source, so the visit lands in Organic social.

Does my own instance count?

Only if it is one of the three recognised servers or a subdomain of one. Otherwise its visits are Referral until you tag your links.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
Traffic sourceOrganic social traffic: networks, communities and chat appsOrganic social in Reveata holds unpaid visits from the social networks, communities and chat apps it recognises, from Facebook, X and Reddit to Hacker News, GitHub and WhatsApp, plus any link tagged utm_medium=social, social media, sm or community, as long as no ad click id or paid tag says otherwise.Traffic sourceBluesky traffic: count the visitors your posts sendA visit referred by bsky.app or bsky.social, or a link tagged bluesky or bsky, is counted as Bluesky in Reveata's Organic social channel. Tag the links you post so visits opened in apps without a referrer still count, then sort the source by revenue.Traffic sourceReferral traffic: links from sites Reveata does not classifyReferral is where Reveata puts visits from any other website it has no specific channel for, plus links tagged with a utm_source or ?ref= value it does not recognise, and links tagged utm_medium=referral, referrer, link or backlink.Traffic sourceDEV Community traffic: from dev.to posts to sign-ups and revenueA visit referred by dev.to, or a link tagged devto, dev-to or dev.to, is counted as DEV in Reveata's Organic social channel. Tag the links in your posts so you can compare articles and see which ones lead to sign-ups and payments.Traffic sourceDiscord traffic: measure visitors from servers and invite linksReveata counts a visit as Discord when the referrer is discord.com, discord.gg or discordapp.com, or when the link is tagged discord. These visits land in Organic social. Links clicked in the desktop or mobile app often carry no referrer, so tag the links you share.Traffic sourceFacebook traffic: organic posts, Messenger links and Meta adsReveata counts a visit as Facebook when the referrer is facebook.com, fb.com, fb.me, messenger.com or the Facebook Android app, or a link is tagged facebook, fb or meta. Untagged visits are Organic social; ad tags or a paid medium make them Paid social.