How to Target OptinMonster Campaigns to Visitors Who Viewed a Specific Page

OptinMonster makes it easy to show campaigns to visitors only after they have or have not viewed a specific page of your site.

In this article, you’ll learn how to use the Pages Visited Display Rule in OptinMonster.

Before you start, the Pages Visited rule requires a Growth subscription.

The URL path is a specific portion of a web page’s URL, but not the full URL. The URL path is the text after the domain and before any query arguments or anchors.
URL Structure

Configure Pages Visited Rule

When you create a campaign in OptinMonster that you want to show to visitors only after they have or haven’t viewed specific page(s) of your website you can use our Display Rules to do so.

To configure the Pages Visited rule, follow these steps:

  1. Navigate to the Display Rules view in the campaign builder.
    Navigate to the Display Rules in the OptinMonster campaign builder.
  2. Next, when adding or editing a rule select OnSite Retargeting from the left-hand list and select Has Visited a Page or Has Not Visited a Page from the Personalization menu.
    Target your campaigns based on specific pages visited.
    The following options are available for Page View targeting:

    • URL Operators
      • is the homepage
      • exactly matches
      • contains
      • starts with
      • ends with
      • matches the pattern (RegEx)
    • Days Operators
      • Within the last (days)
  3. Once you’ve selected the specific option you would like to use you’ll be provided with configuration options specific to that feature.
    Configure the Has Visited rule in OptinMonster.
  4. When you’re finished, click Save.

FAQs

What should I enter in the Url field?

This field accepts only a valid URL Path.

The URL path is a specific portion of a web page’s URL, but not the full URL. The URL path is the text after the domain and before any query arguments or anchors.
URL Structure

Entering the full URL (including domain), a query argument or an anchor into the Url field will cause the targeting to fail. Only valid URL paths are accepted. It is not possible to target query arguments or hashes with this Display Rule.

Troubleshooting

I have a Single Page Application I’m using OptinMonster with but this rule isn’t working for me.

Sometimes, this rule may not work as expected on SPA sites. If you’re experiencing this issue please submit a support ticket.

Get Started With OptinMonster Today!

BONUS: Done-For-You Campaign Setup ($297 value)
Our conversion experts will design 1 free campaign for you to get maximum results – absolutely FREE! Click here to get started →