Pick a Box
Pick a Box shows the visitor a row of closed gift boxes and asks them to choose one. Behind the boxes sits a list of prizes, each with its own chance of being won and its own reward code, plus a No Win result for everything else. The game is a quick, low effort alternative to Spin the Wheel and Scratch the Card, and it works the same way behind the scenes: the result decides which step the visitor sees next, and the prize is available to show on that step and to send to your integration.
Triggering Pick a Box
Section titled “Triggering Pick a Box”The visitor starts the game by clicking or tapping any box. No button is needed. When the step opens, the boxes wave once to invite a click.
The Flow
Section titled “The Flow”The moment a box is picked, the visitor is taken to the step for their result: After Win Open for a prize, After Lose Open for no prize. The prize’s headline, description and reward code are pushed to the DataHub at that point, so the result step can show them, and if configured the result is sent to your integration.
Which box the visitor clicks makes no difference to the result. The result is drawn from the odds you set, not from the box.
Retries after a loss
Section titled “Retries after a loss”Give visitors who get No Win another pick.
How to set it up
Section titled “How to set it up”- Select the game and find After Win Open and After Lose Open under Game Settings.
- Set Retries After Lose to the number of extra attempts, from 1 to 3. None gives one attempt only.
- Before Retry Open appears. Pick the step a visitor who lost sees while they still have attempts left, for example a “So close!” step.
- On that step, add a button with the action Submit and Go to Next Step and set its Target Step to the game’s step, worded like “Pick again”. Pressing it brings the visitor back to the boxes for a new pick.
What happens on each pick:
- A loss with attempts left takes the visitor to the Before Retry Open step.
- A loss with the attempts used up takes the visitor to the After Lose Open step.
- A win always ends the game and takes the visitor to the After Win Open step, whatever attempts are left.
Your integration receives one entry per visitor, once the game is decided: by a win, or by the last losing attempt.
Fair play
Section titled “Fair play”A game remembers the visitor’s attempts 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 attempts left gets their next attempt, 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 starts over as well, like any setting kept in the visitor’s browser.
Steps to add Pick a Box
Section titled “Steps to add Pick a Box”- Click the three dots against the step layout section where you want the game, and select Widget.
- Click the new Widget and choose Pick a Box Game under Select Widget on the Design tab in the right panel.
- The widget is renamed to Pick a Box Game and its settings appear on the Design tab. It starts with one prize and one No Win result.
- Add the steps the game should lead to (a win step and a lose step), then come back and point After Win Open and After Lose Open at them.
Game Settings
Section titled “Game Settings”- Name: the name of the design element. By default it is Pick a Box Game.
- Column Count: how many boxes side by side, from 1 to 3.
- Row Count: how many rows of boxes, 1 or 2. Up to six boxes in total.
- After Win Open: the step shown when the visitor wins a prize. Next Step means the step that follows the game step.
- After Lose Open: the step shown when the visitor gets No Win. Next Step means the step that follows the game step.
- Retries After Lose: the number of extra attempts (1 to 3) a visitor gets after a loss. None gives one attempt. A win always ends the game. See Retries after a loss.
- Before Retry Open: appears once Retries After Lose is above None. The step a visitor who lost sees while they still have attempts left.
- Preview Game: plays the boxes’ animation in the builder so you can check how it looks. Reset Game stops it.
Box Appearance
Section titled “Box Appearance”- Space between boxes: the gap between boxes, in pixels.
- Inner Space: the space inside each box.
- Border Corner Radius, Border Width and Border Color: the border of each box.
- Background Color: the colour of each box.
- Image: click Image Manager to choose the picture shown on every box, for example a wrapped gift. It can be localized, so each language can have its own picture.
Prizes
Section titled “Prizes”Each prize has a Box #1 Settings, Box #2 Settings block and so on:
- Result Headline: the name of the prize, for example “20% off your order”.
- Result Description: the details, for example “Use the code at checkout. Valid for 7 days.”
Neither is printed on the box. They are pushed to the DataHub as WINNER_HEADLINE and WINNER_DESCRIPTION so you can show them on the result step (see Live Data). Both can be localized.
Click + Add Additional Prize to add another prize, and Delete to remove one. The number of prizes does not depend on the number of boxes.
Reward Codes
Section titled “Reward Codes”Click Setup Weight and Reward Codes to set, for each prize:
- Probability: the chance of winning this prize, from 0 to 100 per cent. The bar beside it shows the resulting Chance to win.
- Reward Code: the code the visitor gets for this prize, for example a discount code. 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 absolute, not shared out. A prize set to 20% is won by one visitor in five whatever the other prizes are set to. Whatever is left below 100% is the chance of No Win: two prizes at 20% and 10% leave a 70% chance of no prize. If the probabilities add up to more than 100%, the prizes at the bottom of the list are never reached, so keep the total at 100% or below.
No Win
Section titled “No Win”The result a visitor gets when the draw does not land on a prize. Like a prize, it has a Result Headline and a Result Description, pushed to the DataHub on a loss, so the lose step can say something like “Not this time” or offer a smaller consolation. There is exactly one No Win result. It cannot be deleted and it has no reward code.
Dimensions
Section titled “Dimensions”- Size: the width of the game, from 10% to 100% of its column.
- Inner Space: the space between the edge of the game area and the boxes.
- Outer Space: the space between the game and whatever sits around it in the step.
Background Properties
Section titled “Background Properties”- Background Color: the colour behind the boxes.
Border Properties
Section titled “Border Properties”- Border Corner Radius, Border Width and Border Color: a border around the whole game area.
Live Data
Section titled “Live Data”When a box is picked, three values are pushed to the DataHub. Write them into a Text component or a button on the result step:
WINNER_HEADLINE
Section titled “WINNER_HEADLINE”{{datahub:WINNER_HEADLINE:You won 20%}}WINNER_DESCRIPTION
Section titled “WINNER_DESCRIPTION”{{datahub:WINNER_DESCRIPTION:Use this code at checkout}}WINNER_CODE
Section titled “WINNER_CODE”Inside the step display:
{{datahub:WINNER_CODE:SAVE20}}Inside the integration:
{{datahub:WINNER_CODE}}On a loss, WINNER_HEADLINE and WINNER_DESCRIPTION hold the No Win wording 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 campaign’s submission as a field of its own, next to the answers from inputs on the same step. You can 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 after it, the entry is sent to your integration as soon as that step opens, carrying 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 the people who choose to go on reach your integration.
- Map the code so the integration treats it as a non-win. Every game still sends an entry, 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 Current Locale, turn on Localize to change these per language (see Campaign Localization):
- Result Headline and Result Description of every prize and of No Win.
- The box 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 Result Headline and Result Description of each prize and of No Win, the box Image, Preview Game, and the look of the game (Box Appearance except Space between boxes, Dimensions, Background Properties and Border Properties).
- Shared by every device, set on desktop: Column Count, Row Count, Space between boxes, After Win Open, After Lose Open, Retries After Lose, Before Retry Open, and every Probability and Reward Code.