UTM parameters, click ids and ref links
Which query parameters Statsy reads, the click ids it recognises, and how each visit is sorted into a channel.
Statsy reads a fixed set of query parameters from the landing URL. Everything else in the query string is ignored by default.
What is read
utm_source,utm_medium,utm_campaign,utm_termandutm_content. Each becomes a breakdown you can group and filter by.- Ad click identifiers:
gclid,wbraid,gbraid,msclkid,dclid,gad_sourceandyclidfor search ads;fbclid,ttclid,li_fat_id,twclid,rdt_cid,igshid,sccidandepikfor social ads. The first one present is kept. reforvia, the usual parameters of referral and affiliate programs.
Parameter names are matched case-insensitively, values are trimmed to 200 characters, and a hash-routed URL such as /#/pricing?utm_source=x is read too.
How a visit becomes a channel
Each visit lands in exactly one channel. The first rule that matches wins:
- An ad click id: search ids mean paid search, social ids mean paid social.
utm_medium:cpc,ppc,semand friends mean paid search, unless the source is a social network, in which case paid social;display,banner,cpmandnativemean display;emailandnewslettermean email;affiliateandpartnermean affiliate;socialmeans social;organicandseomean organic search.- A
reforviaparameter means affiliate. - The referrer host: known mail hosts mean email, AI assistants mean AI, search engines mean organic search, social networks mean social, anything else means referral.
- With no referrer at all,
utm_sourcealone is used as a hint. - Nothing matched: direct.
Tag links you control
Ads carry click ids by themselves. What needs your own tags is everything else: newsletters, partner placements, sponsorships and community posts. utm_source plus utm_medium is enough for the channel to be right, and utm_campaign groups a launch together.
https://yourstartup.com/?utm_source=newsletter&utm_medium=email&utm_campaign=launchQuery strings in page paths
Page paths drop their query string by default, so /pricing?ref=abc is recorded as /pricing. That keeps one page from splitting into hundreds of rows and keeps tokens out of your reports. UTM tags and click ids are still read and still attributed. If you genuinely need the query string in the path, turn it on under Site settings › Tracking and read the warning there first.
Last updated · Markdown version