We recommend collecting quiz takers' first and last names alongside their email address, either on the Optin Page before they see their results or through the Email Sign-up on the Results Page after they see them.
Collecting names on the Optin Page
The Optin Page settings have separate First name and Last name options, so you can ask for a first name, a last name or both alongside the email address. These options don't need a Property ID or integration ID to be sent to your email marketing integrations.
To set up the Optin Page, see Collect customer emails.
Collecting names with the Email Sign-up on the Results Page
The Email Sign-up menu can show First name and Last name fields, which you can make optional or required.
To set up the Email Sign-up, see Collect customer emails.
Alternative: collect names with a Single-Line Text Field
If you want to ask for a name separately from email collection, or at a different point in the quiz, you can collect customers' names using the Single-Line Text Field question type:
As with any new question you add to the quiz, you can reposition it anywhere you like. By default these are required to be completed, however you can make this optional.
Unlike standard quiz questions, input field questions do not impact the product recommendations, making them ideal for collecting additional customer information without affecting their quiz results.
Sending names to email and SMS marketing integrations
Names collected on the Optin Page or through the Email Sign-up on the Results Page are mapped automatically to your connected email and SMS marketing integrations. No Property ID or integration ID is needed.
When you collect a name with an open-ended Single-Line Text Field question, enter the correct integration ID under that question's Integration Settings. Each integration's field appears there once you've connected it on the Lantern Integrations page. The exact identifier and format vary by platform, so check your integration's guide for what to enter.
The question's Sensitive data setting must also be Normal for the answer to be sent. If you choose Don't share or Don't store, the answer will not be sent. Learn more about Sensitive Data Controls.
This ensures that the customer data collected in the quiz, including their names, can be seamlessly integrated into your email marketing workflows, helping you personalize future communications.
Reusing the Name Throughout the Quiz
You can also reuse the customer's name throughout the quiz to create a more personalized experience. This is a great way to engage users and make the interaction feel more tailored to them.
Reuse a customer's first name with {{ SPECIALNAME }}
If you collect the customer’s first name on the email capture page, you can reuse it later in the quiz without adding a separate name question.
Use the predefined variable:
{{ SPECIALNAME }}
{{ SPECIALNAME }} only ever refers to the customer's first name. It cannot be used to show their last name.
The first name field on the email capture page does not need a Property ID. Lantern automatically makes the value available through {{ SPECIALNAME }}.
You can add this variable to text on later quiz pages, including Transition Pages, the Results Page, or other pages that appear after the customer has entered their name.
For example:
Hi {{ SPECIALNAME }}, we've registered your answers and are computing your results...
When the shopper enters their name, Lantern replaces {{ SPECIALNAME }} with the name they provided.
Note: If the first name field is optional and the shopper leaves it blank, {{ SPECIALNAME }} may display as undefined. To avoid this, you can add a fallback value, for example: {{ SPECIALNAME | default: "Friend" }}
If you also ask for the last name on the Optin Page, show it with {{ SPECIALLASTNAME }}. Add a default value in case the last name is optional and left blank, for example:
Hi {{ SPECIALNAME }} {{ SPECIALLASTNAME | default: "" }}
Check out our article on How to use customer answers in Lantern quizzes for a step-by-step guide on setting this up.





