Send Privy popup and flyout leads to Sheets
Capture every Privy popup, flyout, banner, and cart saver submission in Google Sheets to build a lead database your whole team can access without logging into Privy.
CMS: Shopify
Overview
Privy is one of the most popular Shopify email capture tools, offering popups, flyouts, banners, and embedded forms. LeadToSheet captures submissions from all Privy display types as they happen in the browser, giving you a real-time Google Sheets backup alongside Privy's built-in contact list and email marketing features.
Implementation checklist
- 1
Add the LeadToSheet SDK to theme.liquid
In your Shopify admin, open Online Store > Themes > Edit Code, find theme.liquid, and add the snippet before the closing </head> tag.
theme.liquid snippet
<script async src="https://www.leadtosheet.com/api/sdk?k=YOUR_CLIENT_KEY"></script> - 2
Test all Privy display types
Trigger a popup, flyout, banner, and embedded form on your store. Submit test data for each to ensure LeadToSheet generates the correct column headers in your sheet.
Tip: Privy's dashboard lets you manually trigger campaigns from the preview panel to speed up testing.
- 3
Check for cart saver captures
Add an item to your cart, begin checkout, then trigger the cart saver popup. Confirm the submission appears in your Google Sheet with the abandonment context.
Customization ideas
Separate email and SMS signups
Privy often collects email and phone number in different campaigns. Use LeadToSheet's routing rules to send email-only signups to one sheet tab and SMS opt-ins to another for cleaner segmentation.
Track free shipping bar conversions
Privy's free shipping bar can include an email field. LeadToSheet captures these submissions alongside the threshold amount, letting you correlate signup incentives with cart values in Sheets.
Merge with Shopify order data
Use VLOOKUP or Apps Script to match Privy lead emails against your Shopify order export, calculating the revenue impact of each Privy campaign directly in Sheets.
Troubleshooting
Flyout submissions missing
Privy flyouts inject into the DOM separately from popups. If flyout data is not captured, verify that the LeadToSheet SDK loads before Privy's script tag in your theme.liquid file order.
Banner form submits but no row appears
Privy banners sometimes use a redirect-based submission that navigates away before LeadToSheet can capture the payload. Switch the Privy campaign to use AJAX submission mode in the Privy display settings.
Embedded forms on collection pages not captured
If Privy embedded forms only appear on specific collection or product pages, confirm that theme.liquid is the template rendering those pages. Some Shopify themes use alternate layout files that may not include the SDK snippet.
Frequently asked questions
- Will LeadToSheet duplicate contacts that Privy already captures?
- LeadToSheet writes to Google Sheets independently. It does not push data back to Privy, so there is no duplication within Privy itself. Your sheet will contain a mirrored copy you can use for analytics or external integrations.
- Does this work with Privy's Shopify Plus cart saver?
- Yes. The cart saver popup injects a form into the checkout flow. As long as the SDK is loaded on the checkout page (Shopify Plus allows script injection there), LeadToSheet will capture the submission.
- Can I capture Privy coupon codes alongside the email?
- LeadToSheet excludes hidden fields (input[type='hidden']), so coupon codes stored in hidden fields are not captured. If the coupon code is rendered as visible text in the popup's thank-you step, it may be captured. Otherwise, map Privy campaign names to coupon codes using a lookup table in Sheets or use Privy's own export.
