{"id":112457,"date":"2023-07-10T11:38:30","date_gmt":"2023-07-10T15:38:30","guid":{"rendered":"https:\/\/optinmonster.com\/?post_type=optinmonster_docs&#038;p=102541"},"modified":"2025-08-08T13:43:59","modified_gmt":"2025-08-08T17:43:59","slug":"target-new-or-returning-visitors","status":"publish","type":"optinmonster_docs","link":"https:\/\/optinmonster.com\/docs\/target-new-or-returning-visitors\/","title":{"rendered":"How to Target New or Returning Visitors"},"content":{"rendered":"\n<p>OptinMonster makes it easy to target campaigns to visitors who are coming to your site for the first time, or are returning from a previous session. Show special offers for first-time visitors, or welcome back returning visitors with a separate offer.<\/p>\n\n\n\n<p>In this article, you\u2019ll learn how to target campaigns to appear for only new or returning visitors to your site.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column alert alert-info is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong><em>Before you start<\/em><\/strong>, this feature requires a <a href=\"https:\/\/optinmonster.com\/pricing\" target=\"_blank\" rel=\"noopener\" title=\"Pro and higher subscription\">Growth subscription<\/a>.<\/p>\n<\/div>\n<\/div>\n\n\n\n<p><em><strong>OptinMonster uses specific cookies set in the browser to determine if a visitor is new or returning to your site.<\/strong><\/em> We use two cookies set in the browser to determine the visitor type.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>_omappvp<\/code> \u2014 is for &#8220;Visitor Persistent,&#8221; and remains in the visitor&#8217;s browser until their cookies are cleared.<\/li>\n\n\n\n<li><code>_omappvs<\/code> \u2014 is for &#8220;Visitor Session,&#8221; and expires after 20 minutes of inactivity.<br>If neither cookie exists, we know the visitor is new. If only the <code>_omappvp<\/code> cookie exists, we know the visitor is returning.<\/li>\n<\/ul>\n\n\n\n<div class=\"alert-box alert-yellow\">\n<p class=\"alert-box-title\">Important:<\/p>\n\n\n\n<p>By default, all campaigns show to both new and returning visitors. You should only configure this rule if you would like to target new OR returning visitors, not both.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how\">Target New or Returning Visitors<\/h2>\n\n\n\n<p>Targeting campaigns to new or returning visitors allows you to personalize your campaigns for each group and their activity.<\/p>\n\n\n\n<p>To show a campaign to new or returning visitors, 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>OnSite Retargeting<\/strong>&nbsp;from the left-hand list and select the <strong>New Visitor <\/strong>or<strong> Returning Visitor<\/strong>&nbsp;option.<img decoding=\"async\" width=\"800\" height=\"565\" class=\"alignnone size-full wp-image-180438\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/new-returning-visitor-rule.jpg\" alt=\"New or Returning Visitor rule in OptinMonster.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/new-returning-visitor-rule.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/new-returning-visitor-rule-300x212.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/04\/new-returning-visitor-rule-768x542.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>When you are finished, <strong>Save<\/strong> the campaign.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">Testing<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"test\">How do I test my campaign using these rules?<\/h5>\n\n\n\n<p><strong>Testing New Visitor:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Clear your browser&#8217;s cookies before testing any campaign configured to show only to new visitors. This will be sure that neither the <code>_omappvp<\/code> or <code>_omappvs<\/code> cookie exists in the browser, indicating to OptinMonster that you are a new visitor.<\/li>\n\n\n\n<li>Visit your website or page where the campaign should appear.<\/li>\n<\/ol>\n\n\n\n<p><strong>Testing Returning Visitor:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit a page of your site where any campaign is set to appear. This allows OptinMonster to set both cookies in the browser.<\/li>\n\n\n\n<li>Next, leave the site for 20 minutes, after which the session cookie will self-delete.<\/li>\n\n\n\n<li>Finally, re-open your browser and navigate back to your site or page where your campaign should appear for returning visitors.<\/li>\n<\/ol>\n\n\n","protected":false},"excerpt":{"rendered":"<p>OptinMonster makes it easy to target campaigns to visitors who are coming to your site for the first time, or are returning from a previous session. Show special offers for first-time visitors, or welcome back returning visitors with a separate offer. In this article, you\u2019ll learn how to target campaigns to appear for only new&nbsp;&hellip;<\/p>\n","protected":false},"author":4657,"comment_status":"open","ping_status":"closed","template":"","documentation\/categories":[28201],"documentation\/tags":[31399,31498,31415,31459,31411],"class_list":["post-112457","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\/112457","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=112457"}],"version-history":[{"count":20,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/112457\/revisions"}],"predecessor-version":[{"id":206394,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/112457\/revisions\/206394"}],"wp:attachment":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/media?parent=112457"}],"wp:term":[{"taxonomy":"categories","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/categories?post=112457"},{"taxonomy":"internal_tags","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/tags?post=112457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}