tag.
4. Fill in the CONFIG values below (search for "STEP 1" in this file).
5. Save. Preview your site — the popup fires after POPUP_DELAY_MS.
KLAVIYO SETUP THIS DEPENDS ON (in your Klaviyo account, not this file)
- Your Public API Key (Site ID): Klaviyo → Settings → API Keys.
- A List to subscribe people to: Klaviyo → Lists → open the list → copy
the List ID from the URL.
- A Flow that actually sends the offer: build a Flow triggered by the
metric name you set below (default: "Scratch Card Won"), with an
email action that sends the code. This popup only fires the trigger
— the Flow is what makes "check your inbox" real.
TESTING NOTE
Previewing this file inside Claude's chat window may not complete the
live Klaviyo calls (browser preview sandboxes often block cross-site
fetches). Test the real integration by opening this file directly in a
normal browser tab, or once it's live on your Shopify theme.
=========================================================================
-->
Only For You Offer
Try Your Luck
Scratch below to see what you win
*By providing your email and clicking the button, you agree to receive recurring auto-dialed marketing SMS.