This article covers specific settings in the Display Rules. If you’re just getting started we recommend reading our general Display Rule documentation first.
Configure Session Storage Rule
When you create a campaign in OptinMonster you can configure it to be shown or hidden based on a visitor’s Session Storage data.
To configure the Session Storage rule, follow these steps:
Navigate to the Display Rules view in the campaign builder.
When adding a new rule, select Session Storage Targeting from the Targeting menu.
Configure the Key and Value operators and fields as you require.
The following match options are available:
Key only:
exactly matches
exists
does not exist
Value:
exactly matches
does not exactly match
contains
does not contain
starts with
does not start with
ends with
does not end with
wildcard
is empty
is not empty
matches the pattern (regex)
When you’re finished, Save the campaign.
Troubleshooting
What is Session Storage?
Session Storage objects are small pieces of data stored in the web browser, similar to cookies or Local Storage objects, are unique to a specific site and can be accessed by typing `window.sessionStorage` in a browser console.
Session Storage objects have no expiration date and are cleared once the user closes the browser window.
All Session Storage objects have a key and a value. For example, a Session Storage object could be eat=pizza
How do I set Session Storage data on my site?
This question is best answered by your web developer, as it depends on your site’s structure, coding language, and goals.
Here are a few articles to help you learn how to do this effectively: