- Create and start a form from a game mechanic template.
- Create a custom field to store the win.
- Set up a flow that issues and sends the prize.
- 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.- Edit the set of prizes: remove or add prizes.
- 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.
- 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.
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.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.- Through an action field
- Through a customer field
- Create a custom field on the Action entity, with the String type.
- 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.
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.
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 anif 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:
PROMO is the customer’s code and PRIZE is the prize type.
- Through an action
- Through a customer field
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.
Use promo code 1234ABCD to get 400 points on your next purchase.