Local Storage Targeting

Local storage targeting helps your website use data saved in a visitor’s browser to show more relevant content and remember user preferences. The data stays even after the browser is closed, making it a simple and reliable alternative to cookies. With PopupKit, it’s easy to set up and use.

You can show or hide a popup based on a specific local storage key and its value stored in the user’s browser. You set conditions for the key and value, and the popup appears only when those conditions are met.

Quick Steps:


Open Local Storage Targeting and click “+”.
Wybierać Show Condition (Show or Don’t show).
Ustawić Key Condition (Exactly Matches or Exists).
Ustawić Value Condition (e.g., Contains, Equal To, Is Empty).
Inspect any page, find the key and value and place them in the respective fields.

Przykład: Key = user_type (Exactly Matches)
Value = premium (Equal To) → Popup shows only for premium users.

Takeaway: Local storage targeting is a simple way to control popup visibility using stored browser data.

Local Storage Targeting with PopupKit #

Getting started requirement: PopupKit pro should be installed and activated on your WordPress site.

STEP 1: Open any PopupKit campaign #

Access your WordPress dashboard, go to PopupKit and open any PopupKit campaign.

Create a new campaign or choose from the active campaigns

STEP 2: Find Local Storage Targeting in the Editor #

Find local storage targeting and expand. You can add local storage targeting by clicking the “+” sign.

Find local storage targeting and expand.png

STEP 3: Customize the Conditions #

After adding an item (local storage targeting), you can see these features:

  1. Show Condition
  2. Local Storage Key Condition
  3. Local Storage Value Condition
Add item to local storage targeting to set conditions

Let’s learn what each of the condition let you do:

  1. Show Condition: Sets the main rule to either Pokazywać Lub Don’t show the popup based on whether your storage requirements are met.
Options of show condition

2. Local Storage Key Condition: Specifies the exact name (the Key) the system searches for in the browser’s storage.

  • Exactly Matches: Triggers only if the key name is a 100% identical match. Example: user_logged_in will not match user_login.
  • Exists: Triggers as long as the key is present, regardless of its value. Example: The popup shows if the key returning_customer is found.
Choices of local storage key condition

3. Local Storage Value Condition: Defines the specific data or text (the Value) that must be inside that key for the popup to trigger.

  • Contains: Triggers if the value includes your specific word or phrase.
  • Starts With: Triggers if the value begins with your specified text.
  • Ends With: Triggers if the value finishes with your specified text.
  • Equal To: Requires the value to be a perfect, exact match.
  • Is Empty: Triggers if the key exists but has no data inside it.
  • Is Anything: Triggers if the key has any value at all (not blank).
  • Matches the Pattern: Uses wildcards or Regex for complex, dynamic matching.
Select a local storage value condition

Now, you have to place the key and value in the respective fields.

Place key and value in the fields

For that, select any page/post of your choice and inspect it.

  1. Select Application tab
  2. Navigate to the Local storage
  3. Select a link
  4. Find the key
  5. Find the value

Jakie są Twoje uczucia?

Updated on kwiecień 5, 2026