Next Commerce
UtilitiesFOMOReference

Events

fomo:shown

When: A popup becomes visible. Fires once per popup display.

Payload:

FieldTypeDescription
customerstringThe randomly chosen customer name (e.g. "Sarah from Dallas")
productstringThe randomly chosen product text
imagestringThe product image URL or data URI

Example:

{
  "customer": "Sarah from Dallas",
  "product": "Premium Bundle",
  "image": "https://example.com/premium.jpg"
}

Listening to Events

window.nextReady.push(() => {
  window.next.on('fomo:shown', ({ customer, product }) => {
    // Send to analytics
    gtag('event', 'fomo_shown', {
      customer,
      product,
    });
  });
});

The FOMO popup does not emit click or close events. There is no fomo:clicked or fomo:closed — the popup is purely visual social proof and is not interactive. If you need an interactive offer popup, use Exit Intent instead.

On this page