Traffic source targeting lets you show a different message to visitors arriving from different places — Google Ads, Google organic, Facebook or direct — with one setting. With a custom source you can also match the website the visitor came from, for example a partner site or a news portal.

The rule is called Source — Google, Facebook, direct, custom — and the editor sums it up as: Use this field when you want to show the popup to visitors coming from a given source.

How traffic is classified

Direct: the visitor arrives on your site without having clicked a link on another site.

Google organic: traffic from search engine results that is earned, not paid.

Google Ads: traffic from search engine results that is the result of paid advertising.

Facebook: traffic arriving from Facebook.

Custom: visitors who came from a page whose address (the referrer) matches what you type — for example a partner site or a news portal.

Custom does not look at UTM parameters. To target a utm_source, utm_medium, utm_campaign or utm_content value — for example visitors from your newsletter tagged ?utm_source=newsletter — use the Other visitor attributes rule instead. In the rule picker it sits right below Source.

Set the rule up

  1. Open Campaigns in the left menu and click the campaign you want to edit.

  2. Open the Settings tab of the campaign.

  3. Scroll to Who should see the popup and click Add new rule.

  4. Pick Source from the list.

  5. Choose the source in the Traffic from dropdown: Google organic, Google Ads, Facebook, Direct or Custom… (the rule opens on Google organic).

  6. Click Save in the rule window, then Save changes in the bar at the bottom of the page.

On a campaign that is already published, the saved rule is pushed to the live campaign, so you don't have to publish again.

💡 You can also ask the assistant on the right to do it for you — "only show it to visitors coming from Facebook".

Custom sources

Pick Custom… and two more controls appear: an operator and a text box. The window explains it: "Custom" matches the URL of the page the visitor came from (the referrer) — not UTM parameters. To target utm_source and friends, add the "Other visitor attributes" rule.

OperatorMatches when the referring page's URL…
equalsis exactly what you typed
not equalsis anything else
contains / not containscontains (or does not contain) what you typed
starts with / ends withstarts (or ends) with what you typed

Type the value into the box — the placeholder is referrer URL, e.g. news.example.com. In most cases contains with the site's domain (for example news.example.com) is the safest choice, because the referrer is a full address, not just the domain. Saving with an empty box is refused: Enter a custom source value.

Excluding a site is done here too: pick Custom…, choose not contains, and type the domain you want to keep out. For example, not contains partner-site.com shows the campaign to everyone except visitors who came from that site.

Things to keep in mind

  • The Source rule holds one condition. To combine audiences — for example "Google Ads visitors on the pricing page" — add another rule; targeting rules are combined with AND.

  • Each rule type can be added once, so a second Source rule is not offered: the row is greyed out with an Added tag. Open the existing card to change it.

  • The rule card sums the setting up as Traffic from Google Ads, Traffic from Direct traffic, and so on — with a custom source it shows the value you typed.

To hide a campaign from visitors who have already viewed a certain page, or from your own office, see Exclude page visitors and Block IP addresses.