virling Docs
v0.3.0 virling.com GitHub Start free
virling Docs

Channels

Every session gets one channel, decided by its first pageview: Paid, Email, AI, Organic search, Communities, Social, Referral or Direct.

Rule order

The rules run in this order and the first match wins:

  1. utm_medium (case-insensitive):
    • cpc, ppc, paid, paidsearch, paid_social or paidsocial is Paid.
    • email, newsletter or e-mail is Email.
  2. Referrer host, when the visitor came from another site:
    • A known AI host is AI.
    • A known search host is Organic search.
    • A known community host is Communities.
    • A known social host is Social.
    • Any other host is Referral.
  3. utm_source, or ref when utm_source is missing, when there is no referrer:
    • A known AI source is AI, a known search source is Organic search, a known community source is Communities, a known social source is Social.
    • Any other value is Referral.
  4. A visit with no referrer and no source whose user agent shows a known in-app browser is credited to that app.
  5. Any other utm_medium with no referrer and no source is Referral.
  6. Everything else is Direct.

Referrers from your own domain and its subdomains are ignored, so moving between your pages never changes the channel.

Known hosts

A leading www. is ignored, and subdomains match: old.reddit.com matches reddit.com. Entries ending in a dot match any domain ending, so google. covers google.com and google.de.

ChannelHosts
AIchatgpt.com, chat.openai.com, perplexity.ai, claude.ai, gemini.google.com, copilot.microsoft.com, chat.deepseek.com
Organic searchgoogle., bing.com, duckduckgo.com, search.yahoo., yahoo., ecosia.org, yandex., baidu.com, search.brave.com, startpage.com, kagi.com, qwant.com
Communitiesnews.ycombinator.com, reddit.com, producthunt.com, indiehackers.com, dev.to, hashnode.com, hashnode.dev, lobste.rs
Socialt.co, x.com, twitter.com, facebook.com, instagram.com, linkedin.com, lnkd.in, youtube.com, youtu.be, threads.net, threads.com, bsky.app, mastodon.social, mastodon.online, mstdn.social, pinterest.com, pin.it, tiktok.com, discord.com, discordapp.com, discord.gg, slack.com, t.me, telegram.org, whatsapp.com, wa.me, substack.com, medium.com

AI is checked before search, so gemini.google.com is AI, not Organic search.

In-app browsers

Links opened inside an app often arrive with no referrer. When the user agent names the app, the visit is credited to it instead of Direct. A referrer or a utm_source always wins.

AppSourceChannel
Instagraminstagram.comSocial
Facebook and Messengerfacebook.comSocial
TikToktiktok.comSocial
LinkedInlinkedin.comSocial
Telegramt.meSocial
WhatsAppwhatsapp.comSocial
Slackslack.comSocial
Discorddiscord.comSocial

Some apps open links in a plain system browser that does not name them. Those visits stay Direct.

Known sources

These utm_source or ref values are matched exactly, lowercased:

ChannelSources
AIchatgpt, openai, perplexity, claude, gemini, copilot
Organic searchgoogle, bing, duckduckgo, yahoo, ecosia, brave, yandex, baidu
Communitieshackernews, hn, ycombinator, reddit, producthunt, indiehackers, devto, hashnode, lobsters
Socialtwitter, x, facebook, fb, instagram, ig, linkedin, youtube, threads, bluesky, mastodon, tiktok, pinterest, discord, slack, telegram, whatsapp, substack, medium

A known host, such as reddit.com, works as a source too.

Which tags to use

Link inutm_sourceutm_mediumChannel
AdsThe ad platform, such as google or facebookcpcPaid, whatever the referrer
EmailYour list, such as newsletteremailEmail, whatever the referrer
Social posts and profilesThe site’s domain, such as linkedin.comsocialSocial
CommunitiesThe site’s domain, such as reddit.comcommunityCommunities
PartnersThe partner’s domain, such as partner.comreferralReferral
AI toolsThe tool’s domain, such as chatgpt.comreferralAI

In the last four rows the source decides the channel, and the medium does not. A referrer from another site still wins over the source. An unknown source counts as Referral, even with utm_medium=social.

Build a link with these tags in the UTM builder, or check an existing link with the UTM checker.

For naming advice, see UTM parameters for revenue tracking.

Examples

LandingChannel
/?utm_source=google&utm_medium=cpc from google.comPaid, medium wins over the referrer
/?utm_medium=newsletterEmail
From news.ycombinator.comCommunities
From chatgpt.comAI
/?ref=producthunt with no referrerCommunities
From someblog.devReferral
Link opened in the Instagram app, no referrerSocial, from Instagram
Typed URL or bookmarkDirect

Referrer names

In breakdowns, aliases share one row: a leading www. is dropped, and these hosts show as another:

HostShows as
t.co, twitter.comx.com
lnkd.inlinkedin.com
old.reddit.comreddit.com
chat.openai.comchatgpt.com
l.facebook.comfacebook.com
threads.net, l.threads.comthreads.com
go.bsky.appbsky.app
pin.itpinterest.com
discordapp.com, discord.ggdiscord.com
app.slack.comslack.com
web.telegram.orgt.me
web.whatsapp.com, wa.mewhatsapp.com
Every Google domain except gemini.google.comgoogle.com

Custom channel rules are Not available yet.

Connect your payment provider and see revenue by channel.

Start free
Was this page helpful?No Edit this page on GitHub