Local Storage Change Interaction

Define actions that happen when a specific localStorage key is added, updated, or removed. It also responds to changes triggered from other browser tabs or windows, making it useful for cross-tab communication.

This interaction allows you to assign one set of actions for when a specific localStorage item is added or modified, and another set of actions for when it is removed or cleared.

Interaction Settings

Option Default Type Description
Item Key None Text Field The name of the localStorage item to monitor for changes.
Item Value None Text Field Trigger the interaction only if the localStorage value matches this. Leave blank to trigger on any value change.
Trigger at Page Load (under Item Value) Off Toggle If enabled, the value will also be checked immediately when the page loads. If it matches, the corresponding actions will run.