Configuration
Configure Channel Rules
Channels are how SourceTag categorises each visitor into a marketing source: Paid Search, Organic Social, Email, Direct, and so on. When someone lands on your site, SourceTag evaluates the visitor’s UTM parameters, click IDs, and referrer against your channel rules, top to bottom. The first rule that matches wins.
You can use the defaults as-is, or customise them to match the way your business thinks about traffic.
The default channels
When you add a site, SourceTag creates 11 channel rules based on GA4’s standard channel groupings. They are evaluated in this order:
| Priority | Channel | Matches when |
|---|---|---|
| 1 | utm_medium is email, e-mail, email-marketing, newsletter, or broadcast | |
| 2 | Affiliates | utm_medium is affiliate, affiliates, or partner |
| 3 | Paid Social | utm_medium is a paid type (cpc, ppc, paid, paidsocial, etc.) AND utm_source is a social platform |
| 4 | Paid Search | utm_medium is cpc, ppc, paid, paidsearch, search-ads, adwords, etc. OR has gclid/msclkid click ID |
| 5 | Display | utm_medium is display, banner, cpm, interstitial, expandable, or rich-media |
| 6 | Paid Video | utm_medium is video, paid-video, pre-roll, preroll, or instream |
| 7 | Other Campaigns | Has UTM parameters but did not match any channel above |
| 8 | Organic Social | Referrer is a recognised social network (70+ domains) OR utm_medium is social/organic-social |
| 9 | Organic Search | Referrer is a recognised search engine (80+ domains including AI search) |
| 10 | Referral | Has an external referrer that did not match any channel above |
| 11 | Direct | No referrer and no UTM parameters |
These defaults work well for most sites. You only need to change them if your business has specific requirements.
Where to find channel rules
- Log in to your SourceTag dashboard at app.sourcetag.io
- Select your site
- Go to the Channel Rules page
You will see a list of all active channel rules in priority order.
How channel matching works
Each channel rule has one or more conditions. There are two types:
Detection conditions check utm_medium values, click IDs, or referrer domains. If ANY one of these matches, the channel is a candidate. These use OR logic.
Filter conditions check utm_source or utm_campaign. If specified, these must ALSO match on top of the detection condition. These use AND logic.
For example, Paid Social detects on utm_medium = cpc (among other paid mediums) but also filters on utm_source being a social platform. So a visit with utm_medium=cpc&utm_source=google does NOT match Paid Social (fails the source filter), but utm_medium=cpc&utm_source=facebook does.
Priority order matters
Rules are evaluated top to bottom. The first match wins, and evaluation stops. More specific channels should sit higher in the list than broader ones.
This is why Paid Social (priority 3) is above Paid Search (priority 4) by default. Both detect on cpc as a medium, but Paid Social adds the extra filter that the source must be a social platform. If Paid Search were evaluated first, Facebook CPC traffic would be incorrectly classified as Paid Search.
Email (priority 1) and Affiliates (priority 2) sit at the top because they have distinctive utm_medium values with no ambiguity. Other Campaigns (priority 7) sits above the organic channels to catch UTM-tagged traffic that didn’t match a specific paid channel.
Fallback channels
The last four channels (Organic Social, Organic Search, Referral, Direct) are primarily referrer-based or catch-all:
- Organic Social catches visits from recognised social network domains, or with
utm_mediumofsocial/organic-social/organic_social - Organic Search catches visits from recognised search engine domains (including AI search engines)
- Referral catches visits with an external referrer that did not match any rule above
- Direct catches visits with no referrer and no UTMs
Other Campaigns (priority 7) sits above the organic channels. It catches UTM-tagged visits that didn’t match a specific paid channel, preventing them from falling through to Organic Social or Organic Search based on their referrer.
These fallback channels should generally stay at the bottom of the list, with Other Campaigns above the organic channels.
Reordering channels
To change the priority of a channel:
- On the Channel Rules page, drag the channel to its new position
- Click Save (or the order saves automatically, depending on your version)
- Click Rebuild Script to apply the changes to your live tracking script
The new order takes effect once the script is rebuilt and the CDN cache refreshes (usually within a few minutes).
Disabling a channel
If you do not need a channel (for example, you do not run display ads), you can disable it:
- Find the channel on the Channel Rules page
- Toggle it off
- Rebuild the script
Disabled channels are skipped during evaluation. Visitors who would have matched that channel will fall through to the next matching rule.
Editing a channel
To modify an existing channel’s conditions:
- Click on the channel name to open the editor
- Add or remove utm_medium values, utm_source values, click ID types, or referrer domains
- Save and rebuild the script
For example, you might add paid_social as an extra utm_medium value to the Paid Social channel if your ad platform uses that convention.
Adding a custom channel
To create a channel that does not exist in the defaults:
- Click Add Channel on the Channel Rules page
- Give it a name (e.g. “Partner Referrals”, “SMS”, “Podcast”)
- Set the detection conditions (which utm_medium values, utm_source values, referrer domains, or click IDs should trigger this channel)
- Optionally add filter conditions to narrow the match
- Drag it to the right position in the priority list
- Save and rebuild the script
Example: adding a “Partner” channel
Say you tag all partner links with utm_medium=partner. You could:
- Add a new channel called “Partner”
- Set the detection condition to
utm_medium = partner - Place it above Affiliates in the priority list (so it matches before the broader Affiliates rule)
- Save and rebuild
Now any visit with utm_medium=partner will be categorised as “Partner” instead of “Affiliates”.
Rebuilding the script
After any change to channel rules, you need to rebuild your tracking script. Channel rules are baked into the JavaScript file at build time, so changes are not live until you rebuild.
- After saving your changes, click Rebuild Script (or Generate Script)
- Wait for the build to complete (usually a few seconds)
- The updated script is pushed to the CDN
You do not need to update the script tag on your site. The URL stays the same. The CDN serves the new version automatically.
Tips
- Start with the defaults. Only customise channels if you have a specific reason to.
- Keep more specific channels above broader ones. If two channels could match the same visit, the one higher in the list wins.
- Fallback channels (Other Campaigns, Organic Social, Organic Search, Referral, Direct) should stay at the bottom.
- After making changes, test with UTM parameters to confirm visits are categorised correctly. See Testing for how.
- Channel names appear in your form submissions and CRM records (in the
st_fc_channelandst_lc_channelfields), so pick names that make sense to your sales and marketing teams.
Related
- How Channels Work — detailed reference on channel matching logic and detail fields
- Getting Started — initial setup walkthrough
- Testing — how to verify your setup