All features

JavaScript event

Fire on any action your site reports that the standard triggers don't cover.

What it is

JavaScript event, in plain words.

JavaScript event shows your popup when your site fires a custom DOM event you name: a login, a filter change, a step in your own checkout.

Use it when the moment you care about isn't covered by the other five triggers.

Your code fires the event with the exact name you entered, on the document or the html element, and the popup appears.

Key benefits

Why it earns its place.

01

Any moment your site knows about.

If your code can tell, your popup can react.

02

Several events, one campaign.

Add as many event names as you need; any one of them opens the popup.

03

Devices per event.

Each event name has its own Desktop / Mobile switch.

How it works

Three steps to set it up.

  1. 1
    Step 1

    Name the event

    On the Settings tab, add On a JavaScript event and enter an event name, for example user_login.

  2. 2
    Step 2

    Fire it from your code

    document.dispatchEvent(new Event('user_login', { bubbles: true }))

  3. 3
    Step 3

    Save and test

    Save, then trigger the action on your site to check the popup.

Questions, answered.

Step-by-step setup lives in the Help Center guide.

OptiMonk monk meditating in lotus pose

Try JavaScript event
on your own store.

Free to start. No credit card.