Personalization variables: first name, prize won, score
Show the participant's first name, the prize they won or their score on your contest's screens and in its emails, using the Creator Studio variables.
On this page
A variable is a keyword between two % signs, such as %gift_name%, that Pinaplay replaces with information specific to each participant: their first name, the prize they won, their score… You write it once in a screen or email text, and every player reads a message addressed to them by name. Running example: the messages of "La Roue des Délices", Douceria's Christmas wheel.
How a variable works
- Syntax: the exact name of the variable between two % signs, with no spaces, as it appears in the list of variables.
- Replacement: in the game and in the emails sent, the variable is replaced by the participant's value.
- Preview: the Creator Studio shows the variable as is, so that you can always edit it.
- Empty value: if the information is missing, the variable disappears along with the space before it. For a visitor who hasn't registered yet, "Bravo
%pr__nom%!" becomes "Bravo !". - Unknown variable: a typo, such as
%prenom%instead of%pr__nom%, isn't replaced: the participant sees it as is.
Available variables
| Variable | Content | On screens | In emails |
|---|---|---|---|
%workspace_name% | Workspace name, here "Douceria France" | Everywhere | All |
%id% | Participant ID | Everywhere | All |
%nom%, %pr__nom%… | Answers to the form fields | Everywhere, except hidden fields | All |
%score% | Score of the entry | Résultat (Result) | No |
%gift_name% | Name of the prize won | Winners' area of Résultat | Instant Gagnant (Instant win) |
%gift_description% | Description of the prize won | Winners' area of Résultat | Instant Gagnant |
%gift_image% | Image of the prize won | Winners' area of Résultat | Instant Gagnant |
%gift_id% | ID of the prize won | Winners' area of Résultat | Instant Gagnant |
%draw_name% | Prize awarded by prize draw | No | Tirage au sort (Prize draw) |
%parental_code%, %child_email% | Parental authorization code, participant's email | No | Code parental (Parental code) |
The Code parental email is used for parental control.
Form field variables
Each form field creates its variable from its label, in lower case: a space or a hyphen becomes an underscore, and an accented letter becomes two underscores. The safest option is still to copy the variable from the list.
| Field label | Variable |
|---|---|
| Nom (Last name) | %nom% |
| Prénom (First name) | %pr__nom% |
%e_mail% | |
| Date de Naissance (Date of birth) | %date_de_naissance% |
| Boutique préférée (Favorite store) | %boutique_pr__f__r__e% |
| Code postal (Postal code) | %code_postal% |
| Téléphone (Phone) | %t__l__phone% |
Checkboxes, opt-ins, passwords and the captcha have no variable. Hidden fields have one in emails, but not on screens.
Insert a variable in a screen
Open the text widget
On the Écrans (Screens) tab, click the Texte (Text) widget you want to personalize. Only this widget replaces variables on the game's screens.
Place the cursor
Click in the text where the value should appear.
Click the variable
The list of variables below the text widget's settings - 1Formatting toolbar: a variable is formatted like the rest of the text, in bold for example.
- 2Text area: the cursor marks where the variable will be inserted.
- 3Widget settings: Couleur de fond (Background color), Padding, Max-width and Valider (Confirm), which have no effect on variables.
- 4Variables disponibles (Available variables): a click inserts the variable at the cursor; if no text is being edited, it's copied instead. The list starts with Nom du workspace (Workspace name) and ID (identifiant) du participant (Participant ID), followed by the form fields.
The list adapts to where the widget is: %score% is added on Résultat (Result), and the prize variables in the green area of Résultat, the one only winners see. See screens and widgets.
Insert a variable in an email
On the Mails (Emails) tab, choose the email in the left-hand column, then click a Texte (Text) widget in the preview.
- 1Formatting toolbar: the same as on screens; here, bold is active on the selected variable.
- 2Email text: "Bravo
%pr__nom%!", then "La Roue des Délices s'est arrêtée sur%gift_name%" (La Roue des Délices stopped on%gift_name%), the prize image and description on their own lines, and finally the entry number%id%. - 3Liste des variables disponibles (List of available variables): a click copies the variable and shows "Copié !" (Copied!); then paste it into the text. For the Instant Gagnant (Instant win) email, the list adds the four prize variables to the common variables and the fields.
In an email, the label and link of a Bouton (Button) widget also accept variables. For example, the link https://www.douceria.example/retrait?ref=%id% passes the participant's number to your website.
Ready-to-copy examples
- Winning message, in the green area of Résultat (Result):
Well done %pr__nom%! You've won: %gift_name%. - Losing message, in the red area of Résultat:
No luck this time, %pr__nom%. Come back tomorrow: the wheel keeps spinning until December 24! - Quiz score, on Résultat:
Your score: %score% points. - Confirmation inscription (Registration confirmation) email:
Hello %pr__nom%, your registration for La Roue des Délices is confirmed. Your participant number: %id%. - Instant Gagnant (Instant win) email:
Congratulations %pr__nom%! You've won: %gift_name%. Show this email in store before January 31, 2027. - Tirage au sort (Prize draw) email:
Congratulations %pr__nom%, you've won: %draw_name%. - Signature:
The %workspace_name% team
Adapt %pr__nom% to the label of your own first-name field.
Pitfalls to avoid
- Renamed field: the variable follows the label. "Votre prénom" (Your first name) gives
%votre_pr__nom%: update your texts. - Deleted field: its variable is no longer replaced and is displayed as is.
- Variable not available in the email: only use the variables listed for that email. A
%gift_name%in Confirmation inscription (Registration confirmation), sent before any win, would stay displayed as is. - Text reused from another campaign: check that the field labels are identical.
Frequently asked questions
Why does a variable show up as is for the participant?
Check its spelling against the list, then the field label, which may have been renamed or deleted. In an email, the variable must also appear in that email's list. In the preview and in a test email, however, this is normal.
Why doesn't the first name appear on the home screen?
Visitors usually haven't registered yet at that point: the variable is empty and disappears. Place it on a screen that comes after registration, such as Résultat (Result).
Can I put the first name in the email subject?
No, variables aren't replaced in Objet du mail (Email subject). Put them in the body of the email, for example in a heading such as "Bravo %pr__nom% !".
Is capitalization corrected?
No, the value is shown exactly as the participant typed it: "camille" stays "camille", "CAMILLE" stays "CAMILLE". In every case, choose wording that reads naturally, such as "Bravo %pr__nom% !".
Can I use a variable in a button?
In an email, yes: the label and link of the Bouton (Button) widget accept them. On the game's screens, only Texte (Text) widgets replace them.
Was this guide helpful?
