Skip to main content

Using Alia profile properties in Klaviyo flows and emails

Use the properties Alia saves on Klaviyo profiles to add discount codes to emails and personalize flows.

Written by Rob D

When someone signs up through an Alia popup, Alia saves details about the signup on their Klaviyo profile. Use these profile properties to put each subscriber's discount code in your emails and to personalize flows by popup, campaign, or quiz answer.

This guide assumes Klaviyo is already connected. See Integrating Alia with Klaviyo.

Properties Alia saves in Klaviyo

Property

What it holds

When Alia saves it

alia_popup_name

The name of the popup they signed up through

When they submit a form

alia_campaign

The name of the campaign the popup belongs to

When they submit a form

alia_popup, alia_flow_name

The popup name again, kept for older flows

When they submit a form

alia_offer

The discount code

When they claim a reward

alia_offer_text

The reward's title, such as "15% off"

When they claim a reward

alia_offer_expiration

When the code expires, if it expires

When they claim a reward

The question text, such as What are you shopping for today?

Their answer to a quiz or survey question

When they answer

Alia also records 2 Klaviyo events: Alia Reward Claimed and Alia Poll Answered.

Add the discount code to an email

  1. In Klaviyo, open the email in your flow.

  2. Select the text where the code should appear.

  3. Open Klaviyo's personalization options and search for alia_offer.

  4. Add a default value, such as a static code you created in Shopify. Subscribers see it if their own code isn't on their profile yet.

  5. Insert the property.

The result looks like this:

{{ person|lookup:'alia_offer'|default:'WELCOME10' }}

Replace WELCOME10 with your own fallback code.

Make sure the code arrives with the signup

By default, Alia saves alia_offer when the visitor claims their reward, which can happen after the signup reaches Klaviyo. If your welcome email sends first, the code is blank.

Popups made with Build a popup already send alia_offer and alia_offer_text when the form is submitted. For other popups, add the code to the form yourself:

  1. Open the popup in the popup editor.

  2. Select the form on your email step.

  3. Under When form is submitted, select Set user property.

  4. Name the property alia_offer.

  5. For the value, select Insert an expression, choose Reward, pick your reward, and choose Code.

  6. Select Save.

💡 Tip: Add a short time delay at the start of your welcome flow. It gives the code time to reach the profile before the first email sends.

Apply the code from an email link

Shopify can apply a discount code when someone opens a link to your store. Combine it with the Klaviyo tag so each subscriber's link carries their own code:

https://yourstore.com/discount/{{ person|lookup:'alia_offer' }}?redirect=/collections/all

Replace yourstore.com with your store's domain and /collections/all with the page to open. Send yourself a test email and check that the code applies at checkout.

Personalize flows with Alia properties

  • Treat campaigns differently. Use alia_campaign or alia_popup_name in a flow filter or conditional split. Match the value to the name shown in Alia.

  • Personalize by quiz answer. Each question becomes a property named with the exact question text. Use it in a conditional split to send different content for each answer.

  • Build segments. Use any Alia property as a segment condition, such as everyone who signed up through a holiday campaign.

Keep quiz question text short. If you change the wording later, Klaviyo gets a new property, and flows using the old one stop matching.

Frequently asked questions

Why is alia_offer blank in my email?

The email sent before the code reached the profile, or the visitor left before claiming their reward. Add a default value to the tag, add a short delay at the start of the flow, or send the code with the form as described above.

Why don't I see a property for a quiz question?

Alia saves answers only for visitors who become Klaviyo profiles. Visitors who answer and leave without entering an email or phone number aren't sent to Klaviyo.

Can I see which popup someone signed up through?

Yes. Check alia_popup_name on their Klaviyo profile, and alia_campaign for the campaign.

Still have questions?

Start a chat from inside the Alia app, or use the chat in our Help Center.

Did this answer your question?