Skip to main content

Results page button in Klaviyo e-mails

Wendy avatar
Written by Wendy
Updated over 2 months ago

Check out our follow-along video tutorial covering these steps:

In this guide, we’ll show you how to add a button to your Klaviyo emails that links directly to your quiz results page.

Step 1: Add a Button to Your Klaviyo Email

Drag and drop a Button element directly into the desired section of your email template, and write any custom text for it (e.g., “Explore your results page”).

Image showing how to drag and drop a Button element into the Klaviyo email template and enter a custom label like "Explore your results page."

Step 2: Connect the Button to the Results Page

2.1. Find the event properties in Klaviyo

To connect the button to the results page, we need to get the results page URL from the events that Lantern sends to Klaviyo.

Click on Preview and Test and at the bottom of Events Properties, you will find the URL properties. Click on results_url_full (or results_url_short if you want to use a custom domain name in your URL). This will automatically copy the URL variable to your clipboard.

Click Done to exit the preview.

GIF showing how to use the Preview and Test feature in Klaviyo to locate and copy the results_url_full or results_url_short property from the event data.

2.2 Direct Link to Full URL

  • In the Link input field for the button, enter {{ event.results_url_full|default:'' }} to set up a direct link to the full URL for the results page.

Image showing how to paste the results_url_full variable into the link input field of a Klaviyo button using the format {{ event.results_url_full|default:'' }}.

Note: This setup is universal and applies to any quiz created with Lantern. The format for linking to the results page will be identical across all quizzes, so you can copy this format for any quiz you send through Klaviyo.

Pro Tip! If you don’t want to link using myshopify.com and prefer using your custom domain, check out our short article on how to create a custom URL for your results page.

Step 3: Customize the Button

Adjust the button’s appearance to match your email design by using Klaviyo’s built-in options. You can modify the background color, text color, font style, padding, border radius, and alignment—no custom code is needed.

Image showing the Klaviyo button design settings where users can customize color, padding, border radius, and alignment to match their email branding.

Step 4: Preview and Test

Use Preview and Test in Klaviyo to ensure that the button’s appearance and link function correctly. Go to Preview and test then scroll to find your results page button and click on it in the preview to verify that it redirects to the results page.

Image showing the Preview and Test feature in Klaviyo being used to check the results page button, ensuring it redirects correctly in the preview.

Optionally, after you go through the quiz you can send yourself a test e-mail from the Klaviyo e-mail editor in order to confirm the button is automatically taking you to your results page.

Image showing the option in Klaviyo to send a test email to confirm that the results page button is working correctly and redirects to the user's personalized quiz results.

For more customization, refer to our related articles on Adding Quiz Product Recommendations in Klaviyo Emails and Adding Quiz Questions and Answers in Klaviyo Emails. If you need further assistance, please contact our support team for help.

Did this answer your question?