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
Edit the popup you want to show first (e.g. your discount popup).
Go to Settings > JS Callbacks, and add a new callback on the Before popup display event.
Paste this code:
js
event.detail.wisepops('properties', { discountOfferSeen: true });
Step 2: Exclude those visitors from the second popup
Edit the popup you want to skip for those visitors (e.g. your samples popup).
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.
