Scratch The Card
The visitor scratches a surface away to reveal a grid of cards. When enough cards show the same prize, the visitor wins it. It works like Spin the Wheel: the result decides the next step and can be sent to your integrations.
Triggering Scratch the Card Game
Section titled “Triggering Scratch the Card Game”The game needs no button. It starts when the visitor scratches the surface, and ends once they have scratched the share of the surface set in Scratch Completion (%). Add a Scratch Surface image so there is something to scratch.
The Flow
Section titled “The Flow”When the scratch is complete, the visitor is taken to the next step, which shows the result. If you set up an integration, the result is sent at this point too.
Game Logic
Section titled “Game Logic”You can add as many prizes as you like. Each game draws one prize, or no prize, by the chances you set.
On a win, the grid shows the drawn prize as many times as Matches Needed to Win asks. The other cards are filled with other prizes, each shown at most one time fewer than is needed to win, and with the No Win card when no prize fits. So with 3 matches needed, a visitor who loses can see 2 cards of the same prize. This keeps the game exciting without giving a win away. With Matches Needed to Win at 1, every other card is the No Win card.
Retries after a loss
Section titled “Retries after a loss”Give visitors who reveal a losing card another go.
How to set it up
Section titled “How to set it up”- Select the game and find Step After Win and Step After Loss under Game Settings.
- Set Retries After Loss to the number of extra tries, from 1 to 3. None gives one try only.
- Before a Retry, Show appears. Pick the step a visitor who lost sees while they still have tries left, for example a “So close” step.
- On that step, add a button with the action Submit and Continue, worded like “Scratch again”, and set its Target Step to the game’s step. Pressing it takes the visitor back to a new card.
What happens on each try:
- A loss with tries left takes the visitor to the step chosen under Before a Retry, Show.
- A loss with no tries left takes the visitor to the Step After Loss.
- A win always ends the game and takes the visitor to the Step After Win, however many tries are left.
Your integration receives one submission per visitor, once the game is decided: by a win, or by the last losing try.
Fair play
Section titled “Fair play”The game remembers the visitor’s tries and result for the visit. Reloading the page, closing and reopening the campaign, moving between steps or opening your website in another tab shows the same result. A visitor who lost but still has tries left gets their next try, never an extra one.
A new game starts when a re-open rule shows the campaign again, or on a new visit once the visitor has been away long enough for a new session to start. A private window also starts over, like any setting kept in the visitor’s browser.
Steps to add Scratch the Card
Section titled “Steps to add Scratch the Card”- Open the menu of the step section in the builder’s component list, and under Select Element pick Widget.
- In the right panel, pick Scratch Card Game in the Widget dropdown.
- The game is added to the step with the name Scratch Card Game, and its settings show in the right panel.
Game Settings
Section titled “Game Settings”- Name: the name in the builder’s component list. It starts as Scratch Card Game.
- Column Count and Row Count: how many cards the grid has, from 1 to 5 each, so at most 5 x 5.
- Matches Needed to Win: how many cards must show the same prize for a win, from 1 to 5.
- Result Display Time (Sec): how long the revealed cards stay on screen after the scratch is complete, from 0 to 20 seconds, before the result step opens. For example, 1 second gives the visitor time to see the cards.
- Step After Win: the step shown when the visitor wins. For example, with 3 matches needed, a visitor who reveals 3 cards of the same prize wins.
- Step After Loss: the step shown when the visitor loses, for example after revealing only 2 matching cards when 3 are needed.
- Retries After Loss: how many extra tries (1 to 3) a visitor gets after a loss. None gives one try. A win always ends the game. See Retries after a loss.
- Before a Retry, Show: appears when Retries After Loss is above None. The step a visitor who lost sees while they still have tries left, or Game Again to send them straight back to a new card.
- Preview Game: plays the game in the builder so you can see how the cards are revealed. Reset Game stops it.
Card Appearance
Section titled “Card Appearance”These settings apply to every card. Only a card with Override Background switched on (a prize or the No Win card) gets its own background color.
- Space Between Cards: the gap between the cards.
- Inner Space: the space between the edge of a card and its text or image.
- Corner Radius: how rounded the card corners are, from 0 to 100.
- Border Width: from 0 to 2. The border only shows when this is above 0.
- Border Color: the color of the card border.
- Background Color: the background color of the cards.
Prizes
Section titled “Prizes”Each prize has its own block (Card 1, Card 2 and so on) with these settings:
- Card content: the text shown on the card once it is scratched, for example “20% OFF”. Darken Editor Background darkens the editor in the panel, so light text is easier to read while you type. Visitors never see it.
- Image: a picture on the card, for example a product or your logo.
- Image Size: the width of that picture in the card.
- Override Background: gives this card its own background color instead of the one under Card Appearance.
- Result Headline: the headline shown when the visitor wins this prize.
- Result Description: the details of the prize, shown under the headline.
The result headline and description are not shown on the card. They are pushed to the DataHub, so you can show them on the result step (see Live Data).
Click Add Prize to add another prize, and Delete to remove one.
Chances and Reward Codes
Section titled “Chances and Reward Codes”Click Set Up Chances and Reward Codes to set, for each prize:
- Probability: the chance of winning this prize, from 0 to 100 percent. The bar beside it shows Chance to win: the chance a visitor actually gets, once the prizes above it in the list are counted.
- Reward Code: the code the visitor gets for this prize, for example a discount code to use at checkout. Give every prize a code. A prize without one still counts as a win, but sends
NO_PRIZE, so your integration cannot tell it from a loss.
The probabilities are not shared out between prizes. A prize set to 20% is won by one visitor in five, whatever the other prizes are set to. What is left below 100% is the chance of the No Win card, shown as No win under the list of prizes.
No Win
Section titled “No Win”The card shown when the visitor loses, and what the result step says then. It has the same settings as a prize card: card content, Image, Image Size, Override Background, Result Headline and Result Description. There is one No Win card and it has no reward code.
For example, with one prize set to 50%, the visitor loses the other 50% of the time.
Scratch Surface
Section titled “Scratch Surface”The layer the visitor scratches away to reveal the cards.
- Hide in Builder: hides the surface in the builder only, so you can see and style the cards underneath. Visitors always get the surface.
- Image: the picture the visitor scratches, chosen in the Image Manager.
- Image Fit: Zoom in to Fill the Space covers the whole card area with one copy of the picture and crops the edges that do not fit. Repeat Horizontally and Vertically repeats the picture to fill the area.
- Scratch Completion (%): how much of the surface, from 1 to 100%, the visitor must scratch away to finish the game.
- Brush Size: how much of the surface each stroke clears: Small, Medium or Large.
Dimensions
Section titled “Dimensions”The size and place of the game in the step.
- Size: the size of the game, from 10 to 100.
- Inner Space: the space between the edge of the game and the cards, on each of the four sides.
- Outer Space: the space between the game and whatever sits around it in the step, on each of the four sides.
Background
Section titled “Background”Background Color: the color behind the cards.
Border
Section titled “Border”A border around the whole game.
- Corner Radius: how rounded the corners are, from 0 to 100.
- Border Width: from 0 to 2. The border only shows when this is above 0.
- Border Color: the color of the border. It can differ from the card border.
Demonstration
Section titled “Demonstration”An example of the game on a website.
Image 1: The game can be on the first step. To collect the visitor’s details first, put a form on the first step and a button that opens the game step, as here.

Image 2: The visitor scratches the surface and the cards appear.

Image 3: The result. A visitor who wins sees the Step After Win.

Live Data
Section titled “Live Data”When the game ends, it pushes three values of the result to the DataHub: the result headline, the result description and the reward code. Show them on the next step with a DataHub placeholder.
WINNER_HEADLINE
Section titled “WINNER_HEADLINE”{{datahub:WINNER_HEADLINE:You won 20%}}WINNER_DESCRIPTION
Section titled “WINNER_DESCRIPTION”{{datahub:WINNER_DESCRIPTION:Use this code in the checkout}}WINNER_CODE
Section titled “WINNER_CODE”In a step:
{{datahub:WINNER_CODE:FREE TSHIRT}}In an integration:
{{datahub:WINNER_CODE}}On a loss, WINNER_HEADLINE and WINNER_DESCRIPTION hold the No Win texts and WINNER_CODE is NO_PRIZE.
The code in the submission
Section titled “The code in the submission”The game also adds the reward code to the submission, as a field of its own next to the answers on the same step. Map it in Campaign Integrations like any other field. A loss sends NO_PRIZE.
A loss is still a result. If the step you send losers to has no submit button, the submission is sent to your integration as soon as that step opens, with NO_PRIZE. Two ways to change that:
- Put a submit button on the lose step. Nothing is sent until the visitor presses it, so only visitors who choose to go on reach your integration.
- Map the code so the integration treats it as a non-win. Every game still sends a submission, and you can tell the losing ones apart by
NO_PRIZEon the receiving side.
Localizable Properties
Section titled “Localizable Properties”With a language other than the default picked in Language, click the translate button at the end of a field to set it per language (see Campaign Localization):
- The card content, Image, Image Size, Result Headline and Result Description of every prize and of No Win.
- The Scratch Surface Image.
Probabilities, reward codes and the steps the game leads to are the same in every language.
Mobile
Section titled “Mobile”On the mobile tab, tick Override Desktop Properties to change the game for mobile visitors (see Campaign Device Customization).
- Can be set per device: the card content, Image, Image Size, Override Background, Result Headline and Result Description of each prize and of No Win, the Scratch Surface Image, Image Fit and Hide in Builder, Preview Game, and the look of the game (Card Appearance except Space Between Cards, Dimensions, Background and Border).
- Shared by every device, set on desktop: Column Count, Row Count, Matches Needed to Win, Result Display Time (Sec), Step After Win, Step After Loss, Retries After Loss, Before a Retry, Show, Space Between Cards, Scratch Completion (%), Brush Size, and every Probability and Reward Code.