How to Add a Spin-to-Win Popup to Shopify on Any Theme
To add a spin to win popup to Shopify, create one discount code per prize in Shopify Discounts, build your wheel in a popup tool, then paste the tool's script snippet into layout/theme.liquid just before the closing body tag and save. It works on any theme. Set when the popup appears, then test a full spin and checkout on your phone.

What you need before you start
To add a spin to win popup to Shopify you need three things: admin access to your store, a popup tool that gives you a script snippet, and a list of prizes you're happy to give away. No developer is needed; allow about 15 minutes.
For where a popup fits in the bigger picture, see how to increase ecommerce conversion rate.
Step 1: Create a discount code for each prize in Shopify
Create your codes first, because the wheel needs them. In Shopify admin, go to Discounts > Create discount, then pick a type:
- Amount off order for "10% off" or "15% off" prizes.
- Free shipping for a shipping prize.
- Amount off products for a prize tied to one product or collection.
Choose Discount code as the method and give each code a clear name, such as SPIN10, SPIN15 and SPINSHIP. Shopify's own guide to creating discount codes covers every option.
Because each prize uses one shared code, protect it:
- Check Limit to one use per customer.
- Set a total usage limit that matches your monthly prize budget.
- Add a minimum purchase amount so small orders don't eat margin.
- Set an end date, then make a new code each campaign.
Shared codes can leak; see how to stop discount codes leaking to coupon sites.
Step 2: Build the wheel and match prizes to codes
Set up your wheel in your popup tool and paste each Shopify code into the matching prize. A sensible starting mix for a store:
| Prize | Odds | Code |
|---|---|---|
| 10% off | High | SPIN10 |
| Free shipping | Medium | SPINSHIP |
| 15% off | Low | SPIN15 |
| Free gift with order | Very low, capped | SPINGIFT |
Make every slice a real prize, with a headline like "Spin for a welcome gift." Add a consent checkbox for marketing emails and short promotion terms, and keep it free to play, no purchase necessary.
Step 3: How do you add a spin to win popup to a Shopify theme?
You add it by pasting the tool's snippet into your theme's main layout file, which loads on every page. Here's the exact path:
- In Shopify admin, go to Online Store > Themes.
- On your current theme, click the ... button and choose Duplicate. This is your backup.
- Back on your live theme, click ... again and choose Edit code.
- In the Layout folder, open theme.liquid.
- Scroll to the bottom and find the closing body tag.
- Paste the snippet on a new line just above it.
- Click Save, then preview the store.
This works on any theme, free or paid, because every Shopify theme has this layout file. If you switch themes, paste it into the new one too. To remove the popup, delete the line and save.
Step 4: Set when the popup appears
Timing decides whether the popup feels helpful or annoying. Better triggers than "the instant someone lands":
- After 15–30 seconds on the site.
- After the visitor scrolls halfway down a page or views a second product.
- On exit intent on desktop.
On mobile, keep the popup small and easy to close, and don't block the page the moment it loads; Google's guidance on intrusive interstitials applies. Our guide on when a popup should appear compares triggers.

Step 5: Test a full spin and checkout on your phone
Test the whole path first:
- Open the store on your phone in a private browser window.
- Wait for the popup, spin, and enter a test email.
- Make sure the code shows and copies correctly.
- Add a product and go to checkout: is the discount applied?
- Try the same email again: it should not win twice.
If the code isn't applied automatically, read how to auto-apply a discount code on Shopify.
A worked example: a small skincare store
For example, a skincare store with steady Instagram traffic could launch like this:
- Codes: SPIN10 (10% off, minimum order, one use per customer), SPINSHIP (free shipping) and SPINMINI (free travel-size cleanser with any order, capped at 50 uses).
- Timing: 20 seconds on desktop, after a second product view on mobile.
After four weeks, the owner checks signups and how many orders used each code in Shopify's reports, then adjusts odds or timing. No result is guaranteed.
How to do this with SpinConvert
SpinConvert installs on any Shopify theme with the free snippet method above: copy your snippet from the app, paste it into layout/theme.liquid just before the closing body tag, and save. There is no SpinConvert Shopify app today; one is coming soon.

Paste your store URL and AI builds a wheel in your brand colors in about 30 seconds. Add one shared Shopify discount code per prize, set the odds and caps, and choose when the popup appears. The wheel applies the won code to the cart automatically, and shoppers can add products from the reward screen, with the checkout link carrying the discount. Each email wins once per campaign, prizes are chosen server-side, and every wheel shows "Free to play · No purchase necessary."
On Shopify today, it does not create unique single-use codes, save players as Shopify customers or track Shopify orders and revenue; those work on WooCommerce. Leads go to Google Sheets, Klaviyo or Mailchimp through Zapier or Make, or a webhook.
See the Shopify spin wheel page for details, or Start free.
Go live this week
Create your discount codes today, then set aside 15 minutes for the install and test. Run it for four weeks before changing anything big, and check your code reports in Shopify every week.
Know a business owner who'd use this? Send them this guide.
Questions
Do I need a Shopify app for a spin to win popup?
No. Many popup tools work by pasting a small script into your theme's layout file, which works on any Shopify theme. An app can make setup easier and add deeper features such as unique codes or order tracking, but a snippet is enough to show a wheel and apply a code.
Will editing theme.liquid break my store?
Not if you paste the snippet in the right place and keep a backup. Duplicate your theme first, paste just above the closing body tag, save and preview. If anything looks wrong, delete the line or switch back to the copy.
Can each winner get a unique Shopify discount code?
Not with a simple snippet: you create one shared code per prize in Shopify, and every winner of that prize gets the same code. To limit misuse, set a total usage cap, one use per customer, a minimum order and an end date. Unique single-use codes need a deeper store integration.
Is a spin to win popup legal on my store?
Generally yes when it is free to play, needs no purchase, offers no cash prizes and shows clear terms. Add a consent checkbox for marketing emails and check the promotion rules in the countries you sell to. This is general guidance, not legal advice.
Try it on your business, free
Describe your business in one line and AI builds a branded spin-to-win wheel in about 30 seconds. Share it as a link or QR code, or add it to your website.
Start free See your wheel first
No card needed.
