The Conditions
1

Referral Source

In this article: About the referral source condition | Usage Examples | Types of referral sources | How to set up a Referral source condition using If>So.

What is the referral source condition

The referral source condition lets you add or replace content on your website based on the domain or URL your visitors arrive from. The referral source can be a page on your website, a URL around the web or a whole domain.

How can your site benefit from the referral source condition? Examples:

  • Display special promotions to visitors arriving from a chosen website
  • Source data from Google Analytics to promote content that other users who arrived from the same source showed interest in
  • Encourage users who arrive from social networks to like and share your content via the social network they arrived from
  • Display different phone numbers (or contact forms) in order to track the results of your marketing effort or collaborations with different sites
  • Show special messages to visitors referred by local domain URLs (E.g. Show a short message in German to visitors arriving from URL’s ending in .com.de.)

What is your referrer?

Click here to see your HTTP/HTTPS referrer.

Referrer source: Page on your website

Use the page on your website referrer source condition to display custom content to visitors arriving from certain pages on your website. This option is useful for cross-selling, upselling, and bringing users back to the sales funnel.

How to set up a Page on your Website referral source condition:

  1. On your WordPress dashboard, go to “If>So → Add New Trigger
  2. Click on “Select a condition” and select “Referrer source“.
  3. Select “Page on your website”.
  4. Chose a page form the pages list
  5. In the content field, set the content to be displayed if the condition is met.
  6. In the default content field, set content to be displayed if the condition is not met (optional, can be left blank).
  7. Press “Publish” and paste the shortcode generated by If>So in your website.

Referrer source: Custom URL

Use the Custom URL condition to display dynamic content to visitors arriving from certain websites or web pages.

Example:  If → URL is Google.com ⇒ Then → display custom content

How to set up a Custom URL referral source condition:

  1. On your WordPress dashboard, go to “If>So → Add New Trigger
  2. Click on “Select a condition” and select “Referrer source.
  3. Select “URL”.
  4. Select an operator: “URL is” / “URL contains” / “URL is not” / “URL does not contain”.
  5. Type in a domain, a webpage URL, or a term.
  6. In the content field, set the content to be displayed if the condition is met.
  7. In the default content field, set content to be displayed if the condition is not met (optional, can be left blank).
  8. Press “Publish” and paste the shortcode generated by If>So in your website.

The referrer source condition will not work while referring from Https protocol to Http protocol. If your website is on Http protocol, and the referrer is an Https website you can use the Dynamic Link condition instead.

The following table presents operators and actual referrers and specifies whether dynamic content will be displayed or not if your website is on Http protocol

OperatorDomain/ URL/ Term set by the adminVisitor’s actual ReferrerResult (Will dynamic content be displayed?)
URL isshoes.comhttp://shoes.comYes
http://www.shoes.comYes – The condition is met whether you write www or not
https://www.shoes.comYes – If your site uses an HTTPS protocol
No – If your site uses an HTTP protocol
https://shoes.comYes – If your site uses an HTTPS protocol
No – If your site uses an HTTP protocol
URL containsshoeshttp://shoes.comYes
shhttp://shoes.comYes – It doesn’t matter where in the URL your letters appear
redhttp://shoes.com/redYes – It doesn’t matter where in the URL your term appears
redhttp://red.shoes.comYes – It doesn’t matter where in the URL your term appears
.com.dehttp://shoes.com.deYes
URL is notshoes.comhttp://clothes.comYes
URL does not containshoeshttp://clothes.comYes

Ready to get started?
Try it on your website