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

Here are some things to know before you begin:

  • The Pages Visited rule requires a Growth subscription.
  • The Pages Visited rule lets you display your campaign based on specific pages the visitor has already visited during their time on your website.
  • When you see URL path mentioned in this article, 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
  • Learn more about our Display Rules,

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 →

Add 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.
    Display Rules view in the OptinMonster campaign builder
  2. When adding a new rule, select Has Visited a Page or Has Not Visited a Page from the Personalization menu.
    Has visited or has not visited a page Display Rule options in OptinMonster.
    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.
    Page View rule in OptinMonster
  4. When you’re finished, click Save.

Troubleshooting

What should I enter in the Key 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 a query argument into the Key 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.
I have a Single Page Application I’m using OptinMonster on but this rule isn’t working for me.

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