OptinMonster makes it easy to display unique campaigns based on the specific ad which referred your new visitor to your site, using our Query Argument targeting rule. This is one of the most powerful ways to use OptinMonster to present targeted offers to your users.
In this article, you’ll learn how to target campaigns to your traffic from your Pay Per Click campaign like Adwords or Facebook Ads.
Before You Start
Here are some things to know before you begin:
- Query Argument Targeting is available with a Pro or higher subscription.
- To target your Pay Per Click traffic, you’ll use a link with UTM parameters as the click event in your ad, rather than a simple URL. Then, in your campaign’s Display Rules, you will target the parameters of that link using the query argument display rule.
- A UTM parameter is a small snippet of code added to your URL, which allows you to track information about the source, medium and campaign of the link. The simplest way to create a UTM link is to use Google’s Campaign URL Builder.
- A UTM parameter is just one type of query argument. Query arguments (and the Query Argument Rule) can also be used for other purposes, which you can learn more about here.
Add the Query Argument Rule
When you create a campaign in OptinMonster you’ll customize when and where it appears to visitors in the Display Rules View.
To hide or show the campaign based the UTM parameters on the page your visitor is on, follow these steps:
- Navigate to the Display Rules View in the campaign builder.
- Select the Edit button in the Summary view of your campaign’s Display Rules to modify them.
- Select the + Add button to add an AND rule, or the + Add a New ‘OR’ Rule button to add an OR rule.
- Click on the Select Rule field and select Targeting (Who) from the sub-menu options.
- Choose the Query Targeting rule. The rule will display as “the URL query arg…” in the conditions summary.
- Next, enter the UTM key and value you would like to target for your campaign to show. Keep reading to learn how to target different UTM keys and values.
Available UTM Parameters
The UTM parameters you can add to a link are:
Used for keyword analysis. Use
||Used for paid search. Use
||Used for A/B testing and content-targeted ads. Use
If we wanted to track an Adwords campaign that was a leaderboard ad for our fall sale, the URL we would use in our campaign might look like this:
In this example, the URL has three query argument keys, and three matching query argument values:
Key: utm_source Value: adwords
Key: utm_medium Value: leaderboard
Key: utm_campaign Value: fall_sale
You can target any of these query argument keys and query argument values in your campaign’s Display Rules.
For example, if you only wanted to display a campaign for those referred by a UTM link from your Adwords campaign (as opposed to one from your Facebook campaign), you could target the query argument key utm_source and the query argument value adwords:
However, you can target any of the parameters, not only the utm_source.
For example, if you wanted to show campaigns only to visitors who were referred from your Adwords campaign for your fall sale (as opposed to those referred from an Adwords campaign for free shipping), you can use the utm_campaign parameter instead.
The examples above use the condition “exactly matches.” You also have the following options:
- does not exactly match
- does not contain
- starts with
- does not start with
- ends with
- does not end with
- is anything
- matches the pattern
These conditions allow you very fine control over what campaigns are displayed in response to your specific Pay Per Click campaigns.