How the popup works
A single <script src="https://app.bc.auto/embed.js"> tag was added to the site. On every pageview, the loader identifies the rooftop, fetches the widget config, and — if the popup is enabled — arms three triggers that race each other. The first trigger to fire opens the registration modal.
Triggers armed for this demo
exitIntent: true— fires when the cursor moves toward the top of the viewport (classic "about to close tab" signal)exitIntentMinDwellMs: 500— demo only: exit-intent arms just 0.5s after load so it's easy to test. Production omits this and keeps the stricter 2.5s default.scrollThresholdPercent: 30— fires when you've scrolled 30% of the pagedelaySeconds: 8— fallback: fires 8 seconds after page load if nothing else triggered firstsuppressionDays: 0— demo only: popup can re-fire across page reloads. Production stores suppress for 30 days after dismiss/submit.
Force the popup right now: Force show (reload with ?promo=force)
Scroll down — the scroll trigger fires at 30% of the page height.