Run campaigns on single-page apps, once our team has switched it on for your domain.
What it is
A single-page application loads one document and swaps its content with JavaScript, without reloading the page. Many modern storefronts and web apps work this way, including headless shops where visitors move from product to cart without a page load.
That's a problem for any popup tool that thinks in pages. Because the page never reloads, OptiMonk can't see the visitor moving on by itself: campaigns may not trigger, trigger on the wrong page, or appear repeatedly.
SPA mode fixes that. It's switched on per domain by the OptiMonk team. With it on, OptiMonk notices each route change made through the browser's history, closes the campaigns from the previous view, and checks triggers and targeting again for the new one, just like on a fresh page load.
Contact us over live chat before you launch campaigns on a single-page app. After that, you build and publish campaigns as on any other site.
When to use it
Visitors move from a product page to the cart without a reload; a cart campaign still shows on the cart route.
Show a campaign on your pricing route only, even though the browser never loads a new page.
Run one campaign on /shop and another on /cart; each route gets its own check.
An exit-intent campaign keeps working as visitors navigate inside the app.
Key benefits
Once SPA mode is on, campaigns re-check on every route change.
The OptiMonk team switches it on for your domain.
You don't need to call OptiMonk from your router.
How it works
Contact us over live chat before you launch campaigns on a single-page app.
The team turns it on for your domain.
Build and publish campaigns as on any site; they re-check rules on every route change.
Settings & limits
SPA mode isn't a switch in the app; the OptiMonk team turns it on per domain.
Route changes made through the browser's history are followed. For other kinds of routers, ask our team.
On a route change, campaigns from the previous view close and rules are checked again.
Campaigns may not trigger, trigger on the wrong page, or appear repeatedly.
Step-by-step setup lives in the Help Center guide.
The page never reloads, so OptiMonk can't see the visitor moving on without SPA mode.
No. It's a per-domain setting made by our team. Contact us over live chat.
On every route change it closes the previous view's campaigns and checks triggers and targeting again for the new one.
It follows route changes made through the browser's history, which most modern routers use. For other setups, ask our team.
Campaigns may not trigger, trigger on the wrong page, or appear repeatedly.
No. Once SPA mode is on, OptiMonk follows the route changes itself.