Visited Pages

Visited Pages

Show campaigns only to visitors who have visited a given page of your website.

Visited Pages is an OptiMonk targeting condition that shows a campaign only to visitors who have previously viewed a specific page on your website during their current session. Rather than showing a campaign to everyone regardless of their browsing history, you use the Visited Pages condition to filter for visitors who have already demonstrated interest in a specific area of your site — a product page, a category, a pricing page, a blog post — by having navigated to it before the campaign fires. The condition is defined by a URL pattern using the same matching operators available throughout OptiMonk's URL rules: contains, starts with, ends with, exactly matches, and regular expressions. Multiple visited page conditions can be combined with AND logic (the visitor must have viewed all specified pages) or as separate conditions within a single campaign for flexibility. Visited Pages is found under the Pages & Custom Rules category in the targeting conditions list and can be stacked with any other targeting condition.

Key benefits

  • Target visitors based on where they have already been, not just where they are now. The current page a visitor is on tells you their present context; the pages they have previously visited tell you their session history and accumulated interests. A visitor currently on the homepage who previously visited the Running Shoes category page is a very different audience from a first-time homepage visitor — Visited Pages lets you identify and target the former with a running-specific message that acknowledges their browsing history.
  • Create behaviorally qualified audiences without any external integration. Identifying visitors who have shown interest in a specific product or category typically requires a CRM, a personalization platform, or a custom JavaScript implementation. Visited Pages makes this possible natively within OptiMonk's targeting system — no integration, no development work, and no data pipeline required. If the visitor has loaded the page, the condition can match it.
  • Build multi-page journey logic within a single campaign. By combining Visited Pages with other conditions, you can target visitors who have completed a specific browsing sequence — for example, visitors who have viewed both the Pricing page and the Features page in the same session, indicating high purchase intent but no conversion yet. This journey-level qualification is significantly more precise than any single-page trigger and produces a smaller, higher-intent audience for every campaign impression.

How it works

Step 1
Open the campaign targeting settings and add the Visited Pages condition

In your OptiMonk dashboard, select the campaign you want to configure and click Edit settings. Under "Select who should see the popup," click Add new condition. Find the "Visited pages" rule under the Pages & Custom Rules category and click the Add sign next to it.

Step 2
Define the URL pattern of the page the visitor must have visited

In the condition configuration, select a matching operator — contains, starts with, ends with, exactly matches, or matches RegEx — and enter the URL value or pattern that identifies the target page. For example, "URL contains /products/running-shoes" matches any visitor who has viewed that product page during the current session. For multiple required pages, add additional Visited Pages conditions using AND logic.

Step 3
Save, combine with other conditions if needed, and publish

Click Save and proceed through the campaign settings. The Visited Pages condition evaluates each visitor's session browsing history at the moment the campaign trigger fires. If the visitor has loaded the matching page during their current session, the condition is satisfied and the campaign displays; if not, it is silently suppressed.

Frequently asked questions

What is Visited Pages targeting in OptiMonk?+

Visited Pages is a targeting condition that shows a campaign only to visitors who have previously loaded a specific page during their current session on your site. You define the target page using a URL pattern — contains, starts with, ends with, exactly matches, or RegEx — and OptiMonk evaluates each visitor's session history against the condition when the campaign trigger fires. It is found under the Pages & Custom Rules category in the targeting conditions list.

Does Visited Pages track browsing history across multiple sessions, or only the current session?+

Visited Pages evaluates the visitor's browsing history within their current session — pages they have loaded since their most recent arrival on your site. If a visitor viewed a product page on a previous visit and returns in a new session, that previous page view will not be recognized by the Visited Pages condition for the new session. For cross-session history tracking, OptiMonk's Connected Campaigns (Engaged with OptiMonk Campaigns) rule or the Recently Viewed Products feature address different aspects of multi-session personalization.

What URL operators are available for Visited Pages conditions?+

The Visited Pages condition supports the same URL matching operators as all other URL-based rules in OptiMonk: contains (the visited URL includes a specific string), starts with (the URL begins with a specific string), ends with (the URL ends with a specific string), exactly matches (the URL is identical to the entered value), and matches RegEx (the URL matches a regular expression pattern). These cover the full range from matching a single specific page to matching an entire section of your site.

Can I require that a visitor has viewed multiple specific pages?+

Yes. You can add multiple Visited Pages conditions to the same campaign, each targeting a different page URL or pattern. All conditions are combined with AND logic — the visitor must have loaded all specified pages during the current session for the campaign to display. This allows you to build journey-level targeting: for example, showing a campaign only to visitors who have viewed both a specific product page and the cart page in the same session.

Can I combine Visited Pages with other targeting conditions?+

Yes. Visited Pages works with AND logic alongside all other OptiMonk targeting conditions — cart rules, country, visitor type, subscriber status, time spent on site, and more. For example, you can show a campaign to visitors who have viewed a specific product page AND are non-subscribers AND have a cart value above $30, combining browsing history with subscriber status and purchase intent into a single, precisely qualified audience.

Ready to try it?

Try OptiMonk for free

Launch your first campaign, learn what works, then scale what converts.

targeting