How to Use OptinMonster’s Referral Detection for Advanced Lead Targeting

Do you want to target visitors coming from a specific traffic source? OptinMonster’s referral detection rule makes it easy! This guide will show you how you can use OptinMonster’s referral detection technology for advanced lead targeting.

NOTE: This guide will show you how to effectively use the Display Rule: Visitors from a specific traffic source (Referrer Detection).
Requirements: This Display Rule requires a Pro Subscription.

What is the Referral Detection Rule?

The Referral Detection Rule allows you to show or hide a specific campaign when the visitor comes from a specific URL.

This rule allows you to show highly customized messages based on the referral source. Whether they found you on Google, Facebook, or another website, you can greet each visitor with a special targeted message based on their interest.


How to Use the Referral Detection Rule

You will find the Page View rule under the Who should see the campaign? section of the Display Rules.

The Referral Detection option in the Display Rules panel.

Next, select the toggle to Activate the Referrer Detection rule for your campaign. You can then configure the specific rules you want to use to show your campaign based on the referral domain.

You can configure your campaign to load based on the referral domain using OptinMonster's Referrer Detection technology.

You have a variety of options when selecting your rule, from “exactly matches” to “does not contain”, and more. With Referral Detection, you are able to truly control the campaigns you show, and optimize your marketing strategy.

That’s it, you’ve successfully page targeted your campaign using OptinMonster’s Referral Detection technology!

Looking for more ways to create targeted campaigns? See our doc on how to target new or returning visitors.


Frequently Asked Questions

Q: Why would I use OptinMonster’s Referral Detection?

A: This is especially helpful if you’ve recently been reviewed or mentioned recently by someone or some company. For instance, if Huffington post recently mentioned you (like, what has happened with our CEO, Syed Balkhi), then perhaps you want a very targeted campaign just for the people coming from Huffington Post.

OptinMonster provides you with the ability to detect these leads and hopefully increase your conversions. You should check out some of our guides for more tips on increasing lead generation.


Q: Can I use Referral Detection to hide/show campaigns to visitors arriving from my email newsletter?

A: No, unfortunately there is no Referrer set in the browser when a visitor reaches your site by clicking on an email link. However, you might want to check out our guide on how to hide OptinMonster from existing newsletter subscribers.


Q: Referrer Detection isn’t working for my campaign, why?

A: Referrer Detection checks if a specific value has been passed as the HTTP_REFERRER. If the HTTP_REFERRER passed is empty then Referrer Detection will fail for your campaign and your campaign might not load as you expect.

There are several reasons the HTTP_REFERRER could be empty, including if the website visitor:

  • entered the site URL in browser address bar itself
  • visited the site by a browser-maintained bookmark
  • visited the site as first page in the window/tab
  • switched from a https URL to a http URL
  • switched from a https URL to a different https URL
  • has security software installed (antivirus/firewall/etc) which strips the referrer from all requests
  • is behind a proxy which strips the referrer from all requests
  • visited the site programmatically without setting the referrer header

In all instances we strongly recommend that you thoroughly test your campaign’s functionality when configuring referrer detection in the Display Rules to ensure your settings are working as expected.

Switching from a https URL to a http URL? For advanced users, if you have access to the site your visitors are coming from, you can resolve this issue by adding the following meta tag to the head of the https site:

<meta content="origin" id="mref" name="referrer">

This is how Google, etc. gets around sending referrer information from their https to regular sites.