Number of Visited Pages
Segment visitors based on how many pages of your site they have visited.
Number of Visited Pages is an OptiMonk targeting condition that shows a campaign only to visitors who have opened a minimum number of pages during their current session on your site. You set a numeric threshold — for example, 4 — and the campaign fires only once the visitor has navigated to at least that many pages, indicating a meaningful level of engagement before the message appears. This distinguishes active browsers from passive or accidental visitors: someone who has viewed four or five pages has demonstrated genuine interest in your site and is substantially more qualified for a targeted offer or lead capture campaign than someone who arrived on a single page and has not yet explored further. The condition is configured per campaign in the targeting settings and can be combined with any other OptiMonk rules — page URL, cart value, visitor type, country — using AND logic to build tightly scoped audiences.
Key benefits
- Show campaigns to visitors who have already demonstrated engagement. A visitor who has clicked through four or more pages of your site is not a casual arrival — they are actively exploring. Waiting until this threshold is met before showing a campaign means every impression is delivered to someone who has already invested time in your store, making the offer more likely to land at a moment of genuine consideration rather than interrupting a visitor who has barely arrived.
- Filter out low-intent traffic before spending impressions on it. Not every visitor who arrives on your site is a genuine prospective customer. Bounce traffic, bots, and casual arrivals represent impressions that rarely convert and inflate your campaign's impression count without contributing to its conversion rate. Setting a minimum visited pages threshold filters this traffic out automatically — keeping your analytics clean and ensuring your frequency caps are used on visitors worth targeting.
- Pairs naturally with returning visitor and session-depth strategies. Number of Visited Pages works particularly well in combination with other engagement signals — for example, targeting visitors who have visited at least 3 pages AND spent at least 60 seconds on the current page, or visitors who have viewed 5+ pages AND have products in their cart. Each additional condition narrows the audience to a more engaged, higher-intent segment, without creating separate campaigns for each variation.
How it works
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 and find the Number of Visited Pages rule in the targeting condition list.
In the condition field, enter the minimum number of pages the visitor must have opened in their current session for the campaign to be eligible to display. For example, entering "4" means the campaign will only fire for visitors who have navigated to at least 4 pages on your site during their current session. The condition reads the visitor's session-level page count at the moment the trigger fires.
Add any additional targeting conditions — URL rules, cart conditions, visitor type — to further scope the audience. Save and publish. From this point, OptiMonk evaluates the visitor's page count at every qualifying trigger event and only shows the campaign when the threshold has been reached.
Frequently asked questions
What is Number of Visited Pages in OptiMonk?+
Number of Visited Pages is a targeting condition that restricts a campaign to visitors who have opened at least a specified number of pages in their current browsing session. You set a numeric minimum — such as 3 or 5 pages — and OptiMonk evaluates the visitor's session-level page count each time the campaign trigger fires, showing the campaign only when the threshold is met. It is used to target engaged visitors who have demonstrated meaningful browsing activity rather than passive or single-page arrivals.
Does the page count reset between sessions?+
Yes. The visited pages count is tracked at the session level — it reflects how many pages the visitor has opened during their current visit. If the visitor returns in a new session, the count starts from zero again. This makes the condition a signal of engagement within a single visit rather than a cumulative all-time browsing history metric.
What is a good minimum number to set?+
The right threshold depends on your site's typical browsing patterns and the campaign's purpose. For most ecommerce stores, a minimum of 3 to 5 pages indicates a meaningfully engaged visitor — enough to have viewed at least a category page and one or two product pages. For content-heavy sites, a higher threshold (5–8 pages) may better identify visitors who are genuinely exploring. Checking your analytics for the average pages-per-session metric gives a useful baseline for calibrating the threshold.
Can I combine Number of Visited Pages with other targeting conditions?+
Yes. The Number of Visited Pages condition stacks with all other OptiMonk targeting conditions using AND logic. For example, you can show a campaign to visitors who have viewed at least 4 pages AND are on a product page AND have a cart value above $30. Each additional condition narrows the audience, allowing you to target a precisely defined segment of highly engaged visitors without building separate campaigns.
Can I use this condition to exclude visitors who have seen too many pages?+
The condition currently supports a minimum threshold — it identifies visitors who have reached or exceeded a page count floor. To create an upper boundary (for example, targeting only visitors who have seen between 3 and 7 pages), you would need to combine it with other conditions or use OptiMonk's Connected Campaigns rule to exclude visitors who have already seen specific campaigns, as a proxy for limiting to a specific engagement window.
Try OptiMonk for free
Launch your first campaign, learn what works, then scale what converts.