Help

How to create a scratch card popup with Nudgesmart

Build a scratch card popup that asks for an email, reveals a prize and gives each winner a real Shopify discount code, from template to live on your store.

Scratching to reveal a prize is a small moment of suspense, and it turns an email signup into something shoppers want to finish. Every code it gives out is a real Shopify discount code that works at checkout.

TL;DR

Pick a scratch card template, click the scratch card, and answer What should shoppers win?: The same gift for everyone, or A surprise prize. Set the discount, check the Code section, and make sure the email field and the Play Scratch Card button are in place. On the Rules tab, choose when and how often it shows. Set Status to Active, click Save, and play it once on your own store.

How a scratch card works for shoppers

  1. The popup opens with an email field, a button and a card that's locked.
  2. The shopper enters their email and taps the button. The card unlocks.
  3. They scratch the card to reveal their prize.
  4. The result page shows their code with a copy button.

Each shopper scratches once. If the popup shows again, they see their own result, not a new card.

Step 1 · Choose a template

Open Templates and filter to Scratch Cards. Pick a design and open it in the editor.

Every scratch card template already has what the game needs: an email field, a button that unlocks the card, the card itself and a result page. You only change the look and the offer.

Step 2 · Choose what shoppers win

Click the scratch card on the canvas. At the top of its Content tab, What should shoppers win? gives you two choices.

The same gift for everyone

Every shopper who scratches wins your gift. In the Your gift card, set:

  • Gift type: Percentage off, Amount off or Free shipping.
  • How much off?
  • Codes: One code, or More off for bigger orders to give each shopper a set of codes unlocked by spend. See Give several codes from one scratch card.
  • Name shown to shoppers, filled in for you, like "15% OFF". This is what the card reveals.
  • Under More options, Code starts with: the start of every code, like GIFT.

This is the simplest setup, and the best fit for a sale.

A surprise prize

Shoppers win one of several prizes by luck. A scratch card holds 2 to 10 prizes.

  • To start quickly, use Start from a ready-made set: Standard, Includes a 'try again', Generous or Conservative.
  • Click Edit on a prize to change it, or + Add Prize to add one.
  • For each prize, set the Prize name (what the card reveals) and How often is it won?: Often, Sometimes, Rarely or Never. Nudgesmart balances the chances for you and shows a summary like "About 85 in 100 shoppers win a prize". Click Set exact chances for exact numbers.
  • Turn on No prize — shopper sees your 'try again' message. for a prize that gives no code. The last prize that can be won can't be turned into No prize.

Click Save Changes under each prize you edit.

Step 3 · Set up the codes

With A surprise prize, open each prize and turn on Generate Shopify discount code. Then set Codes, Discount Type, Discount Value and Code Prefix.

With Generate Shopify discount code on, Nudgesmart creates a unique, single-use Shopify discount code for each winner. You'll see them in Shopify admin → Discounts. With The same gift for everyone, codes are created for you, so there's nothing to switch on.

If you turn Generate Shopify discount code off, every winner of that prize sees the same code you type in Coupon Code. Create that code in Shopify admin → Discounts first, or it won't work at checkout.

Then scroll to the scratch card's Code section:

  • When do codes expire? Choose A set time after the shopper gets them and fill in Code expires after, or All codes end on a date.
  • Combine with other discounts if the code should work with your sale prices.
  • Minimum Order if the code needs a minimum basket. Leave it at 0 for none.
  • Under More options, turn on One code per shopper, so a shopper who comes back with the same email sees their code again instead of getting a new one. See One code per shopper.

Step 4 · Check the email capture

Click the email field. On its Content tab, check What do you want to collect? is set to Email. Then click the button under it and check its Action is Play Scratch Card.

The card stays locked until the shopper enters an email and taps that button, so both need to be there.

Two optional extras for the email side:

Step 5 · Write the result messages

On the scratch card's Content tab, open Result page messages and fill in Win Title and Win Description.

With A surprise prize, also write Lose Title and Lose Description. Consolation Code is optional: a code shown to shoppers who don't win. It must already exist in Shopify admin → Discounts, or it isn't shown. With The same gift for everyone, there's no losing message to write.

Under Game settings, Card size sets the card to Small, Medium or Large.

Step 6 · Choose who sees it and when

Open the campaign's Rules tab. In When should it show?, choose Let Nudgesmart pick the best moment (recommended) or I'll choose the moment.

Step 7 · Publish and test

On the campaign's Content tab, under Status & priority, set Status to Active. Click Save.

Nudgesmart checks your popup first. If anything would stop the game from loading on your store, Before you save lists it with a Fix it button.

Then click Preview on my store, or open your store in a private window, and play it yourself. Use the code at checkout to make sure it works.

Common pitfalls

  • The card won't scratch. The shopper hasn't entered an email and tapped the button yet. Check the button's Action is Play Scratch Card.
  • A shopper got no code. They revealed a prize set to No prize. Choose The same gift for everyone if everyone should win.
  • The code doesn't work at checkout. Check the basket meets any Minimum Order, the code hasn't expired, and the shopper checked out with the email they entered.
  • A shopper can't play again. That's by design: one scratch per shopper.

Frequently asked questions

Can I give several codes from one scratch?

Yes. Set Codes to More off for bigger orders and add up to five spend tiers. See Give several codes from one scratch card.

Can shoppers reopen the popup to see their code later?

Yes, with tab mode. A small tab stays on the page, and after a claim, a tap on it shows their codes again. See Keep a tab on the page with teaser tab mode.

Can I give a free product?

Not as a prize. Prizes are discount codes: percentage off, amount off or free shipping.