Skip to main content
A game pop-up — like a spin-the-wheel — lets visitors win one of several prizes in exchange for subscribing. Here’s how to set up the form, store each win, and send customers the prize they got. You can use any set of prizes you like. To launch the mechanic, you need to:
  1. Create and start a form from a game mechanic template.
  2. Create a custom field to store the win.
  3. Set up a flow that issues and sends the prize.
  4. Add a campaign that shows the win.

Create the pop-up

Create a new pop-up. The mechanic needs a specific form — use the With game mechanic filter to find one.

Pop-up settings

Open the template editor and adjust the pop-up’s design to match your site.

Prizes

Open the game element’s settings and find the sector and probability settings.
  1. Edit the set of prizes: remove or add prizes.
  2. Click a prize to open its settings, and set:
    • The prize name or image.
    • Win ID — the prize name. The ID is passed to the action or the customer field and used to identify the prize in the flow. See how data reaches your account.
    • The text shown when the customer wins this prize.
  3. Set the odds of each prize:
    • Simple — quickly spread the odds with chance levels. The percentages are redistributed automatically across the options.
    • Enter as percentage — set the exact percentage by hand.
This setting runs on the front end, so visitors can tamper with it through your site’s code. We don’t recommend using it to give away expensive or especially valuable prizes.

Contact fields

Open the form element settings and choose the fields that ask for the customer’s details, so you can send them the prize.
We don’t recommend removing the contact fields entirely, to keep the form from being abused. Either way, the pop-up report is always built as a contact collection form report, even when these fields are missing.

Targeting

Narrow the form’s targeting so it doesn’t show on every visit. For the basic pop-up settings, see How to create pop-ups.

Set up data transfer to your account

Data transfer works as described in How to pass form data to your account. First, add a custom field to store the win. You can create it on the action or on the customer. An action field has two advantages: a new value doesn’t overwrite the previous win, so you keep the history of every play; and since customer custom fields get used more often, too many of them can clutter the interface.
  1. Create a custom field on the Action entity, with the String type.
  2. In the pop-up’s Actions after the customer submits the form settings, set it up to create a customer with a contact and to issue an action whose custom field stores the win:
    • Maestra field — the action custom field you created earlier.
    • Form field — Result.
After playing, the customer gets a registration action and an action with the prize.

Issue and send the prize in a flow

The form is the game part of the mechanic. You set up issuing and sending prizes separately, in a flow. The flow starts on the action that issues the prize. A Condition block then checks the prize (stored in the action’s or customer’s custom field), the flow issues the matching prize, and it sends a campaign. Create these in advance:
  • An automated campaign to send the prize. You’ll see how to show the win in it below.
  • Promo code pools. Prizes are issued as promo codes the customer can use as a benefit on their next purchase. Each prize type needs its own pool.
If you use other kinds of prizes, the flow setup may differ. To set up the flow:
1

Choose the trigger event

Use the prize being issued as the trigger. Pick the action template from the pop-up.
2

Check the win

Check the win value with the Multibranches mode. Add every prize option exactly as written in the Win ID. The condition checks either the action field or the customer field, depending on where you pass the prize.
3

Issue the prize and send the campaign

Issue the matching prize and send the campaign.
4

Repeat for every prize and start the flow

Add a prize send for each prize option, then start the flow.

Show the prize in a campaign

To show the prize in your email markup, use an if block: depending on the win value, it inserts a promo code from the right pool and the matching text. For example, you want to show this message:
Here, PROMO is the customer’s code and PRIZE is the prize type.
Parameters:
  • CustomerAction.CustomField.{Action_custom_field_system_name}.Name — the prize won in the form, from the action’s custom field.
  • Recipient.LastReceivedPromoCode.{Promo_code_pool_system_name}.Value — the customer’s promo code from a specific pool.
Example:
Here’s what the customer gets:
Use promo code 1234ABCD to get 400 points on your next purchase.