OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Target Visitors Based on Local Storage

How to Target Visitors Based on Local Storage

OptinMonster makes it easy to hide or show campaigns based on the Local Storage data in your visitor’s browser.

In this article, you’ll learn how to use OptinMonster’s Display Rules to hide or show a campaign based on Local Storage.

Before you start, Local Storage targeting is available with a Pro or higher subscription.

It is also possible to target Session Storage objects and Cookies.

Configure Local Storage Rule

When you create a campaign in OptinMonster you can configure it to be shown or hidden based on a visitor’s Local Storage data.

To configure the Local Storage rule, follow these steps:

  1. Navigate to the Display Rules view in the campaign builder.
    Navigate to the Display Rules in the OptinMonster campaign builder.
  2. Next, when adding or editing a rule select Who (Personalization) from the left-hand list and select the Local Storage Targeting option.
    Local Storage rule in OptinMonster.
  3. Configure the Key and Value operators and fields as you require.
    Local Session Storage rule options.
    The following match options are available:

  4. When you’re finished, Save the campaign.

FAQs

What is Local Storage?

Local Storage objects are small pieces of data stored in the web browser, similar to cookies or Session Storage objects, are unique to a specific site, and can be accessed by typing `window.localStorage` in a browser console.

Local Storage objects have no expiration date and can only be removed using JavaScript or by clearing the browser’s cache.

All Local Storage objects have a key and a value. For example, a Local Storage object could be eat=pizza

How do I set Local 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:


Still stuck?

How can we help?

Last updated on


Start Getting More Leads & Sales Today with OptinMonster!

Start Getting More
Leads & Sales Today
with OptinMonster!

Create and launch smart capture forms today in minutes. What are you waiting for?

Create and launch smart capture forms
today in minutes. What are you waiting for?

OptinMonster has transformed our business. Before integrating their optins, our clients saw a 2% conversion rate from web traffic, which is slightly above the standard for their industry. With the integration of OptinMonster’s lightbox popup, exit-intent technology, split testing, and other tools, our client’s conversion rates soared by an unprecedented 500%. They attracted substantially more customers while spending less on digital advertising. Their success propelled them to the top of their markets, outperforming national chains and other medical spas with much bigger marketing budgets. Our client’s success in their market has distinguished us in our own. We are now one of the most sought-after marketing firms in the industry of aesthetic medicine. We know that the integration of OptinMonster, more than any other tool or marketing strategy, has supported this growth and achievement.

chris zelig medstar media

Chris Zelig

Partner, Medstar Media

OptinMonster has been a game-changer for us. From driving donations to collecting new leads, there is nothing that this simple tool has failed to accomplish. Our lead collection rate has jumped by over 1,000%.

joe lowe american bird conservancy

Joe Lowe

Director of Digital Communications, American Bird Conservancy

Through OptinMonster’s exit-intent popups, we have more than doubled our sales conversion rate. Best of all is the compound effect of using OptinMonster over a long period of time—more conversions mean more customers, which means more word of mouth.

mitch smith, managing director, shockbyte

Mitch Smith

Managing Director, Shockbyte.com