Capture

Popups & buttons

Turn any page you own into a lead-capture surface — a popup is one script tag, a button is a drop-in CTA.

Popups

A popup is a lead-capture modal delivered by a single script. Build it in Popups → New Popup, copy the embed, and paste it before </body>:

<script src="https://api.myleadsyncer.com/popup/your-slug.js" defer></script>

What the popup does for you

The window.MyLeadSyncer object

Once the script loads, your page can open the popup and read the captured lead:

// open the popup from your own button
window.MyLeadSyncer.open();

// check if this visitor already submitted
if (window.MyLeadSyncer.lead) {
  console.log(window.MyLeadSyncer.lead.email);
}

Buttons

A button is a styled call-to-action you can place anywhere — in a page builder, a blog post, or raw HTML. Wire it to open a popup or link to any URL. Style (colors, size, label) is controlled in the app, so you can update every embedded copy without touching the sites it lives on.

<div id="mls-button"></div>
<script src="https://api.myleadsyncer.com/button/your-slug.js" defer></script>
Tip: pair a button with a popup — the button carries the offer, the popup captures the lead, and the submission syncs with your tag.