Popupsmart + Shopify guide

Capture Popupsmart popup leads in Google Sheets

Sync every Popupsmart exit-intent popup, countdown timer, and lead capture form into Google Sheets so your team can act on leads the moment they opt in.

CMS: Shopify

Popupsmart injects popup forms into the DOM after page load using smart targeting rules, which means standard form listeners miss them. LeadToSheet uses a MutationObserver strategy to detect Popupsmart popups the instant they render, capturing email signups, countdown offers, and exit-intent leads into Google Sheets as a reliable backup to Popupsmart's own integrations.

Implementation checklist

  1. 1

    Add the SDK to your Shopify theme

    Open your Shopify admin, navigate to Online Store > Themes > Edit Code, and paste the snippet just before the closing </head> tag in theme.liquid.

    theme.liquid snippet

    <script async src="https://www.leadtosheet.com/api/sdk?k=YOUR_CLIENT_KEY"></script>
  2. 2

    Trigger each popup type

    Visit your store and activate each Popupsmart campaign (exit-intent, timed, scroll-based) to generate the sheet column headers for every form variation.

    Tip: Use an incognito window to reset Popupsmart's visitor cookie between tests.

  3. 3

    Verify rows in your Google Sheet

    Open your connected sheet and confirm that each popup submission includes the email, campaign name, and page URL where the popup fired.

Customization ideas

  • Route campaigns to separate tabs

    Use LeadToSheet's form routing rules to send exit-intent leads to one tab and countdown offers to another, matching your Popupsmart campaign structure.

  • Track A/B test variants

    Popupsmart's A/B testing changes form markup per variant. LeadToSheet captures variant identifiers so you can compare conversion rates directly in Sheets.

  • Combine with smart targeting data

    Popupsmart targets visitors by device, referrer, and page. LeadToSheet appends UTM parameters and referrer data alongside the form payload so you can segment leads by acquisition channel.

Troubleshooting

  • Popup submissions not captured

    Popupsmart injects forms after page load. Confirm the LeadToSheet SDK loads before Popupsmart's script in theme.liquid so the MutationObserver is active when the popup DOM nodes appear.

  • Exit-intent popups fire but data is missing

    Some exit-intent popups close the overlay before the submission completes. Ensure your Popupsmart campaign uses a thank-you step rather than an immediate redirect so LeadToSheet has time to capture the payload.

  • Countdown timer forms show empty fields

    If Popupsmart renders the form inside a shadow DOM or isolated container, check that your Shopify theme does not include a Content Security Policy that blocks inline script execution from the Popupsmart origin.

Frequently asked questions

Does LeadToSheet interfere with Popupsmart's own email integrations?
No. LeadToSheet listens passively to the browser submission event. Your Popupsmart-to-Mailchimp or Popupsmart-to-Klaviyo connections continue to work unchanged.
Can I capture leads from Popupsmart's mobile-specific popups?
Yes. LeadToSheet detects forms regardless of viewport size or display trigger. Mobile exit-intent and scroll popups are captured the same way as desktop ones.
Will Popupsmart's frequency capping affect data capture?
Frequency capping prevents the popup from showing again, but every submission that does occur is captured. LeadToSheet records the timestamp so you can reconcile with Popupsmart's analytics.