{"id":112469,"date":"2023-07-10T11:39:56","date_gmt":"2023-07-10T15:39:56","guid":{"rendered":"https:\/\/optinmonster.com?p=111477&#038;post_type=optinmonster_docs&#038;preview_id=111477"},"modified":"2025-07-17T20:28:35","modified_gmt":"2025-07-18T00:28:35","slug":"how-to-target-visitors-based-on-page-views","status":"publish","type":"optinmonster_docs","link":"https:\/\/optinmonster.com\/docs\/how-to-target-visitors-based-on-page-views\/","title":{"rendered":"How to Target Visitors Based on Page Views"},"content":{"rendered":"\n<p>OptinMonster makes it easy to show campaigns to visitors only after they have visited a specific number of pages.<\/p>\n\n\n\n<p>In this article, you will learn how to use the number of Page Views Display Rule in OptinMonster.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Before You Start<\/h2>\n\n\n\n<p>Here are some things to know before you begin:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The Page View rule lets you display your campaign based on how many pages the visitor has viewed during their time on your website.<\/li>\n\n\n\n<li>OptinMonster cannot track page views when visitors are using private browsing or Incognito modes due to how they function, and because they do not use local storage.<\/li>\n<\/ul>\n\n\n\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/8g0Ib8pKH7k?rel=0\" width=\"800\" height=\"450\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how\">Add Page View Rule<\/h2>\n\n\n\n<p>When you&nbsp;<a href=\"https:\/\/optinmonster.com\/docs\/creating-your-first-optin\/\" target=\"_blank\" rel=\"noopener\" title=\"\">create a campaign<\/a> in OptinMonster that you want to show to visitors only after they&#8217;ve viewed a specific number of pages you can use our Display Rules to do so.<\/p>\n\n\n\n<p>To configure the Page View rule, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to the <strong>Display Rules<\/strong> view in the campaign builder.<br><img decoding=\"async\" width=\"800\" height=\"560\" class=\"alignnone size-full wp-image-180093\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/06\/display-rules-view.jpg\" alt=\"Navigate to the Display Rules in the OptinMonster campaign builder.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/06\/display-rules-view.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/06\/display-rules-view-300x210.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/06\/display-rules-view-768x538.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>Next, when adding or editing a rule select <strong>When (Triggers)<\/strong> from the left-hand list and select the <strong># of Pages Viewed<\/strong> option.<br><img decoding=\"async\" width=\"800\" height=\"564\" class=\"alignnone size-full wp-image-180417\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/pages-visited.jpg\" alt=\"Number of pages viewed rule in OptinMonster.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/pages-visited.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/pages-visited-300x212.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/pages-visited-768x541.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>Configure the rule using the options provided.<br><img decoding=\"async\" width=\"644\" height=\"116\" class=\"alignnone size-full wp-image-180416\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/pages-viewed-options.jpg\" alt=\"# of pages viewed options.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/pages-viewed-options.jpg 644w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/pages-viewed-options-300x54.jpg 300w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/li>\n\n\n\n<li>When you are finished, <strong>Save<\/strong> the campaign.<br><img decoding=\"async\" width=\"800\" height=\"564\" class=\"alignnone size-full wp-image-180417\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/07\/save-display-rules-optinmonster.jpg\" alt=\"save display rules - optinmonster\"><\/li>\n<\/ol>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"not-working\">I\u2019ve set my campaign to load on the second pageview, but it\u2019s not appearing. Why?<\/h5>\n\n\n\n<p>Check that you\u2019ve visited at least one page of your site&nbsp;<em>where the campaign is embedded<\/em>&nbsp;first before navigating to the second page of your site where the campaign is embedded and expected to appear.<\/p>\n\n\n\n<p>A page view is only counted if this specific campaign is embedded on the page you\u2019ve viewed. If you are using the global embed code added to all pages of your site this should not be an issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OptinMonster makes it easy to show campaigns to visitors only after they have visited a specific number of pages. In this article, you will learn how to use the number of Page Views Display Rule in OptinMonster. Before You Start Here are some things to know before you begin: Add Page View Rule When you&nbsp;create&nbsp;&hellip;<\/p>\n","protected":false},"author":4657,"comment_status":"open","ping_status":"closed","template":"","documentation\/categories":[28201],"documentation\/tags":[31399,31498,31415,31411,31401],"class_list":["post-112469","optinmonster_docs","type-optinmonster_docs","status-publish","hentry","categories-display-rules"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/112469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/types\/optinmonster_docs"}],"author":[{"embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/users\/4657"}],"replies":[{"embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/comments?post=112469"}],"version-history":[{"count":15,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/112469\/revisions"}],"predecessor-version":[{"id":205174,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/112469\/revisions\/205174"}],"wp:attachment":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/media?parent=112469"}],"wp:term":[{"taxonomy":"categories","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/categories?post=112469"},{"taxonomy":"internal_tags","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/tags?post=112469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}