Skip to main content

How to set up rewards and discounts in Alia

Alia offers 4 reward types: Static code, Unique code, Custom, and Smart reward. Learn how each works and what every setting does.

Written by Rob D

Rewards are the discounts and offers you give visitors when they sign up through a popup or finish an education track. You create a reward in Alia, then attach it to a step in your popup.

You can create a reward in four ways:

  • The Rewards page, then select Create. If you open Alia from your Shopify admin, go to Campaigns and select the Rewards card at the top of the page. If you sign in to Alia directly, you can also use Rewards under the Config heading in the left sidebar. If the sidebar is collapsed, the heading is hidden, so look for the gift icon.

  • The popup editor: select the Discount element or a Claim reward action, open Select a reward, scroll to the bottom, and select Create new reward...

  • Build a popup: in the Configure your offer step, select + Create a reward, or pick an existing one from Select a reward.

  • Lia: ask Lia, Alia's built-in AI assistant, to create a reward or change one, for example "Make my welcome code 15% off and expire after a week." She shows you what will change and which popups use the reward, and nothing changes until you approve it. Product, collection, customer segment, and country limits, smart rewards, and discounts linked to Shopify can only be set on the Rewards page. See How to approve Lia's actions.

Reward types

Alia has 4 reward types. Each one handles setup and settings differently.

Type

What it is

Where the settings live

Static code

One shared code for everyone, such as GET15

Shopify, or your own checkout

Unique code

A one-time code generated for each visitor. Includes free shipping codes.

Alia (Shopify stores; for Magento, see Unique discount codes on Magento)

Custom

A reward with no code, such as a giveaway entry

Nothing to configure beyond the title

Smart reward

2 or 3 rewards, with each visitor shown the best one for their buying intent

Alia, per reward (Shopify stores only)

Static code

A static code is a single code that every visitor shares. Create it in your store's checkout first, with settings such as value, eligible products, and end date.

  1. Create the discount code in your Shopify admin, or in your own checkout if your store isn't on Shopify.

  2. Open the Rewards page (see above), then select Create.

  3. Select Static code.

  4. Search for your code in the list of Shopify codes, or type it in exactly as you created it.

  5. Check that the code is correct, then select Next.

When you choose a Shopify code, Alia shows its settings from Shopify, but you can't edit them in Alia.

To change the value, products, or end date, edit the discount in Shopify. Alia shows the updated settings the next time you open the reward.

You can use a static code to offer a free gift. Set a 100% discount on a specific product in Shopify.

Unique code

A unique code is a one-time code that Alia generates in Shopify for each visitor. You manage its settings in Alia, so check them before you go live. Unique codes are available for Shopify stores. On Magento, see Unique discount codes on Magento.

When you create one, choose a Type:

  • Discount, with a percentage (such as 15% off) or fixed amount (such as $10 off).

  • Free shipping, which you can limit to certain countries or a maximum shipping price.

Under Code format, you set a prefix and how many random characters follow it, from 4 to 10. By default, codes start with AL followed by 8 random characters. You can change the prefix or clear it, using letters, numbers, and hyphens. Alia shows an example code as you edit.

To offer a free gift with a unique code, limit it to that product under Customer gets.

Grouped unique codes

When you create a unique code, you can turn on Group codes in discounts tab. This changes how codes appear in Shopify and which settings you can use.

  • Grouped: All codes sit under a single discount in Shopify's discount list. You can pick an existing Shopify discount or create a new one. After you create the reward, its discount settings are managed in Shopify, and you can still change the code format in Alia.

  • Not grouped: Each code appears as its own discount in Shopify's discount list. You can edit all settings in Alia, including a real expiration time and Contact info must match at checkout.

To switch a grouped reward to a different Shopify discount, create a new reward.

Grouped or not, each visitor gets their own code, and each code works once.

Custom

A Custom reward is for offers that aren't a discount code, such as an entry into a giveaway. You only enter a title, such as "An entry into our giveaway." Alia doesn't create a discount or a code.

  1. In the Alia sidebar, select Rewards under Config, then select Create.

  2. Select Custom.

  3. In Enter a title, describe what the shopper gets.

  4. Select Next.

If you want to give everyone the same code, use a Static code instead.

Smart reward

A Smart reward shows each visitor a different reward based on their buying intent. For example, a high-intent shopper might see 5% off, while a lower-intent shopper sees 15% off.

  • A Smart reward holds 2 or 3 rewards.

  • Each one can be a static code or a unique code, with a percentage or fixed amount value.

  • Free shipping and Custom rewards can't be part of a Smart reward.

  • Grouped unique codes and static codes load fastest. Ungrouped unique codes can slightly delay when the popup appears.

  • After you save, you can't change a reward's value or products inside the Smart reward. Create a new reward instead.

For full setup, including popup copy and your email and SMS flows, see How to set up Smart rewards.

Discount settings

These settings control how an ungrouped unique code works at checkout. You'll find them on the reward's page in Alia.

Customer gets

Set the discount value, then choose which products it applies to:

  • All products, the default.

  • Specific product(s), where you can include or exclude products or individual product variants.

  • Specific collection(s), where you can include or exclude collections.

If your store sells subscriptions, you can also choose whether the code works on subscriptions, on one-time purchases, or both. With Applies on subscriptions turned on, you can limit the discount to a set number of subscription cycles.

Restrictions

  • Minimum spend requirement: Choose Quantity of items or Subtotal, then enter the minimum. It applies to the items the discount covers, not the whole cart.

  • Contact info must match at checkout: Alia limits the code to the shopper's Shopify customer record, so the email or phone used at checkout must match what they entered in your popup. This only works when Alia has already linked the shopper to a Shopify customer at the moment they claim the reward. If it hasn't, the code is created for all customers, so treat this setting as an extra safeguard rather than a guarantee.

  • Customer segments: Choose Only for customer segments... to limit the code to specific Shopify customer segments.

You can use customer segments or contact info matching, but not both on the same reward.

Combines with

Shopify has 3 discount classes: Order, Product, and Shipping. Choose which of these your code can combine with.

Integration overrides

Change your integration settings for visitors who claim this specific reward.

Expiration

Turn on Expiration to show a countdown timer with your reward. For ungrouped unique codes, the code stops working when the timer reaches 0.

💡Note: For static codes, Custom rewards, and grouped unique codes, the timer is for display only. Shoppers can still use the code after it ends. Set a real end date on the discount in Shopify or your checkout.

Auto-apply at checkout

By default, Alia applies the discount to the shopper's cart when they reach the step that shows the code. To turn this off, open your popup in the popup editor, select the Discount code element, and turn off Apply to checkout.

If a button or game in your popup uses a Claim reward action, you can turn on Apply code immediately on that action. Alia then applies the code to the cart and closes the popup instead of showing the reward window.

A Claim reward action gives out the code whether or not the visitor has signed up. To keep your reward behind the signup, show it with the Discount element on the step after your form instead. Lia does this by default, and only adds a Claim reward action when you ask for one.

Auto-apply only works on Shopify stores. If your store isn't on Shopify, turn off Apply to checkout and leave Apply code immediately off. Otherwise, your popup tells shoppers the code was applied when it wasn't, and they won't know to enter it at checkout.

Education track settings

On the reward's page (Config → Rewards, then select the reward), turn on Show settings for education. These settings were built for education tracks, but they also control the reward window that opens when a button or game in your popup uses a Claim reward action without Apply code immediately. They don't affect the Discount element.

💡Note: Show discount code instead of apply button doesn't change the Discount element in your popups. To change auto-apply there, see Auto-apply at checkout.

Education modal options

  • CTA: For static codes and Custom rewards, show a button with your own text and link, such as "Shop now."

  • Redirect user when discount is applied: Sends the shopper to another page after they claim the reward.

  • Require opt-in to reveal discount code: Hides the code until the shopper opts in. Choose whether the code is sent by email or by SMS. Alia doesn't send it, so set up your email or SMS platform to deliver it.

  • Show discount code instead of apply button: Shows the code instead of an apply button, and the code isn't applied for the shopper.

Education copy

Customize the text in the education reward screen, including Qualifier line 1 and Qualifier line 2. Use the qualifier lines when the discount only applies to certain products, such as "Valid on tees only."

FAQ

My store isn't on Shopify. Which reward should I use?

Use a Static code. Create the code in your own checkout, then type it into Alia exactly as you created it. In your popup, turn off Apply to checkout so shoppers know to enter the code themselves. Unique codes, free shipping codes, and Smart rewards need Shopify discounts. For an offer without a code, use a Custom reward. If your store is on Magento, you can use unique codes. See Unique discount codes on Magento.

I created a code in Shopify but can’t find it in Alia?

The reward dropdown lists rewards you’ve made in Alia, not the codes in your Shopify admin. To use a Shopify code, create a Static code reward. Select Create, choose Static code, then type the code or search your Shopify codes. Each code needs its own reward.

I made several codes but my popup keeps showing the first one?

Alia gives each visitor one code per reward in each browser. It remembers the code it gave them and shows it again, even after that code has expired or been used. To see a new code when you test, open your live popup in a private browser window or on another device.

If you made several rewards and want the popup to give a different one, open the popup in the popup editor, select the Discount element or the Claim reward action, choose the reward under Select a reward, then publish.

I want to email the code instead of showing it on screen. How do I set that up?

Alia doesn't send rewards by email or SMS. When you build a popup, choose Double opt-in in the Opt-in type step, right after Reward. Shoppers then get their reward after opting in, instead of seeing the code on screen. In an existing popup, change your reward screen copy to something like "Check your email for your code." Then set up your email or SMS platform to send the code.

Klaviyo receives the code with the Alia Reward Claimed event. Some platforms, such as Dotdigital, only receive the reward's title, so add a static code directly to the email. See Using Alia profile properties in Klaviyo flows and emails. During email domain warm-up, consider requiring subscribers to retrieve discount codes from their email or SMS. This approach helps build sender reputation, encourages engagement, and grows your subscriber list. Once the domain is warmed up and engagement metrics are strong, you can transition to displaying codes directly on the popup's success page.

My discount code isn't working at checkout. What should I check?

Start with the settings that most often block a code:

  1. Check that the cart has items covered by Customer gets.

  2. Check that those items meet the Minimum spend requirement.

  3. Check Combines with if the shopper is using another code.

  4. If Contact info must match at checkout is on, check that the shopper used the same email or phone as in the popup.

  5. Check that the code hasn't expired.

For static codes and grouped unique codes, check these settings on the discount in Shopify instead.

What does "reward not found in flow" mean?

The reward isn't part of the published popup the visitor is seeing. Check that the popup or track uses the reward, then publish your latest changes.

Can I cap a percentage discount at a maximum amount?

No. Alia-created discounts don't support a maximum amount, such as 10% off up to $100. There's no setting or workaround for this in Alia.

💡Tip: Before you publish, open the Publish dropdown and select Review popup to have Lia, Alia's built-in AI assistant, check your popup for mistakes. If you make more changes afterward, run the check again. See Getting started with Lia.

Still have questions?

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

Did this answer your question?