Skip to main content

Stop visitors from seeing two offers in one session

Written by Rafael Gonzales

If you're running two popups, say a discount offer and a free sample offer, you might not want the same visitor to see both. Here's how to make one popup "skip" anyone who's already seen the other.

Step 1: Tag visitors who see the first popup

  1. Edit the popup you want to show first (e.g. your discount popup).

  2. Go to Settings > JS Callbacks, and add a new callback on the Before popup display event.

  3. Paste this code:

js

event.detail.wisepops('properties', {   discountOfferSeen: true });

Step 2: Exclude those visitors from the second popup

  1. Edit the popup you want to skip for those visitors (e.g. your samples popup).

  2. Go to Targeting > Custom properties, and add this rule:

discountOfferSeen is false OR discountOfferSeen does not exist

That's it. Anyone who sees the first popup gets tagged, and the second popup will skip them.

Tip: Running more than one "first" popup (e.g. two different discount offers)? Reuse the exact same property name in the JS callback on each one. That way, a single exclusion rule on the second popup covers all of them.

Did this answer your question?