Skip to content

How to Add a Discount to Your Quiz

A discount rewards the customer for finishing the quiz. This version can:

A discount set on the product itself needs no code

A product discounted in Shopify shows its reduced price on the results page by itself. A discount code works differently: it is redeemed at checkout, so the customer sees the reduction only at that stage.

A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

how to add a discount example

There are four ways to get the code to the customer:

A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

how to add a discount example

There are four ways to get the code to the customer:

A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

how to add a discount example

This version has no discount field in the quiz, so there are three ways to get the code to the customer:

A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

how to add a discount example

This version has no discount field in the quiz, so there are three ways to get the code to the customer:

A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

how to add a discount example

This version has no discount field in the quiz, so there are three ways to get the code to the customer:

Set up a discount on the results page

The results page can reach the checkout in three ways, and they combine. A code applied automatically stays invisible until checkout, so showing it as text as well tells the customer what they are getting.

Apply the code automatically at checkout

The code stays invisible until checkout

It appears neither in the quiz preview nor on the results page. Shopify applies it when the customer reaches checkout. To tell the customer about it, show it as text as well.

  1. Open Discounts in your Shopify admin and click Create discount.

  2. Choose the kind of discount, such as a percentage or a fixed amount.

  3. Name the code, for example quiz123, and set the amount.

  4. Choose which products it applies to, then save it and copy the code.

    how to add discount in shopify

  5. Open your quiz in the app by clicking Customize.

  6. Click the results page name to open its settings.

    Results Page settings panel

  7. Scroll to Discount code and paste the code in.

    Discount code field in the Results Page settings

    how to add discount automatic

  8. Click the top-right Save button.

  9. Take the live quiz through to checkout, and check the code is applied.

    how to add discount automatic checkout

    The preview cannot show this, because the code is applied by Shopify checkout.

Before you start

Create the discount code in your Shopify admin, following the Shopify guide to discount codes. Choose the manual type, because the app reads no other kind, and activate the code before you connect it to the quiz.

The discount lives in Shopify

You create, change and end the discount in Shopify. The app only points at it.

A static discount, the same code for everyone

  1. Go to Results Page Settings > Discount Settings.

  2. Type your code into the Code field. It is redeemed at checkout.

    how to add discount static

  3. Pick a percentage under Visible discount. That figure shows on the results page products.

  4. Click the top-right Publish button.

  5. Take the live quiz through to checkout, and check the code is applied. The preview cannot show this, because Shopify redeems the code at checkout.

A dynamic discount, a different code per cart value

  1. Create one Shopify discount code per tier, as Before you start describes.

  2. Go to Results Page Settings > Discounts and click activate.

    how to add discount dynamic

  3. Fill in the first discount.

    Discount code - The code, as created in your Shopify discounts.

    Discount percentage - Shows on the results page products, and is redeemed at checkout.

    Min. value in cart - The cart total above which this discount applies.

  4. Click + / add another discount for each further tier.

  5. Decide what the customer is told.

    Enable notifications - Shows a notification when the customer qualifies for a discount.

    Encourage discounts - Adds how close they are to the next discount up.

  6. Click the top-right Publish button.

    The bin icon deletes one tier, and deactivate turns dynamic discounts off again.

  7. Take the live quiz, and add products until the cart passes your first threshold. The notification should name that tier, and its code should be redeemed at checkout.

This route needs the Advanced Coupons plugin

Advanced Coupons for WooCommerce turns a coupon into a URL, and the quiz sends the customer to that URL instead of to the plain cart.

  1. Create a coupon code in Advanced Coupons.

  2. Open its URL Coupons section and point Redirect To URL at your cart page.

  3. Copy the URI, which is the part of the coupon URL after your domain.

    how to add discount woo step 1

    From https://yourdomain.com/coupon/codexyz/, copy /coupon/codexyz/.

  4. Go to Results Page Settings > Checkout Settings and paste it into Cart URL.

    how to add discount woo step 2

  5. Click the top-right Publish button.

  6. Take the live quiz through to the cart. The customer lands on the coupon URL instead of the plain cart, and the coupon is applied for them.

Not part of this version

The quiz has no discount field here, so it cannot redeem a code for the customer.

Instead, show the code as text and let the customer paste it at checkout, or have a developer apply it with custom JavaScript.

Not part of this version

The quiz has no discount field here, so it cannot redeem a code for the customer.

Instead, show the code as text and let the customer paste it at checkout, or have a developer apply it with custom JavaScript.

Not part of this version

The quiz has no discount field here, so it cannot redeem a code for the customer.

Instead, show the code as text and let the customer paste it at checkout, or have a developer apply it with custom JavaScript.

Show the code as text

Put the code in a Text block and the customer copies it at checkout.

  1. Open the Results page.

  2. Click Add block and select Text.

  3. Type the discount code into the text field.

  4. Click the top-right Save button.

how to add discount text block

A question works the same way, if you would rather promise the discount before the customer finishes.

Put the code in a Content block on the Results Page and the customer copies it at checkout.

  1. Open the Results Page tab in the Quiz Builder.

  2. Click + Add block and select Content.

  3. Type the discount code into the text field.

  4. Click the top-right Publish button.

A question works the same way, if you would rather promise the discount before the customer finishes.

Put the code in a Content block on the Results Page and the customer copies it at checkout.

  1. Open the Results Page tab in the Quiz Builder.

  2. Click + Add block and select Content.

  3. Type the discount code into the text field.

  4. Click the top-right Publish button.

A question works the same way, if you would rather promise the discount before the customer finishes.

Put the code in a Content block on the Results Page and the customer copies it at checkout.

  1. Open the Results Page tab in the Quiz Builder.

  2. Click + Add block and select Content.

  3. Type the discount code into the text field.

  4. Click the top-right Publish button.

A question works the same way, if you would rather promise the discount before the customer finishes.

Put the code in a Content block on the Results Page and the customer copies it at checkout.

  1. Open the Results Page tab in the Quiz Builder.

  2. Click + Add block and select Content.

  3. Type the discount code into the text field.

  4. Click the top-right Publish button.

A question works the same way, if you would rather promise the discount before the customer finishes.

Put the code in a Content block on the Results Page and the customer copies it at checkout.

  1. Open the Results Page tab in the Quiz Builder.

  2. Click + Add block and select Content.

  3. Type the discount code into the text field.

  4. Click the top-right Publish button.

A question works the same way, if you would rather promise the discount before the customer finishes.

Apply the code with custom JavaScript

  1. Open the Results page and open its settings.

  2. Scroll to Custom JavaScript.

  3. Ask your developer to call await Quiz.applyDiscountCode() there.

    Quiz Copilot can write it for you

    Click ✨Get help with custom JavaScript to open the Quiz Copilot chat.

  4. Click the top-right Save button.

See how to add JavaScript to the quiz for what custom JavaScript can reach.

Your developer can set the code from the Results Page.

/* set specific discount code */
prq.setDiscountCode('10-OFF');

That applies the code to every recommended product. The code has to exist in your store first.

See how to add JavaScript to the quiz for where this code goes.

Your developer can set the code from the Results Page.

/* set specific discount code */
prq.setDiscountCode('10-OFF');

That applies the code to every recommended product. The code has to exist in your store first.

See how to add JavaScript to the quiz for where this code goes.

Your developer can set the code from the Results Page.

/* set specific discount code */
prq.setDiscountCode('10-OFF');

That applies the code to every recommended product. The code has to exist in your store first.

See how to add JavaScript to the quiz for where this code goes.

Your developer can set the code from the Results Page.

/* set specific discount code */
prq.setDiscountCode('10-OFF');

That applies the code to every recommended product. The code has to exist in your store first.

See how to add JavaScript to the quiz for where this code goes.

Your developer can set the code from the Results Page.

/* set specific discount code */
prq.setDiscountCode('10-OFF');

That applies the code to every recommended product. The code has to exist in your store first.

See how to add JavaScript to the quiz for where this code goes.

Include the code in a follow-up email

The result email can carry the discount code, for the customer to copy and paste at checkout.

  1. Open Quiz settings.

  2. Go to the Emails to respondents tab.

  3. Write the discount code into the message.

Setting the email up in the first place

See Setting Up Result Emails with Product Recommendation Quiz.

The follow-up email can carry the discount code, for the customer to copy and paste at checkout.

  1. Open the Quiz Builder.

  2. Go to the Notifications > TO RESPONDENT tab.

  3. Write the discount code into the message.

Setting the email up in the first place

See Setting Up Result Emails with Product Recommendation Quiz.

The follow-up email can carry the discount code, for the customer to copy and paste at checkout.

  1. Open the Quiz Builder.

  2. Go to the Notifications > TO RESPONDENT tab.

  3. Write the discount code into the message.

Setting the email up in the first place

See Setting Up Result Emails with Product Recommendation Quiz.

The follow-up email can carry the discount code, for the customer to copy and paste at checkout.

  1. Open the Quiz Builder.

  2. Go to the Notifications > TO RESPONDENT tab.

  3. Write the discount code into the message.

Setting the email up in the first place

See Setting Up Result Emails with Product Recommendation Quiz.

The follow-up email can carry the discount code, for the customer to copy and paste at checkout.

  1. Open the Quiz Builder.

  2. Go to the Notifications > TO RESPONDENT tab.

  3. Write the discount code into the message.

Setting the email up in the first place

See Setting Up Result Emails with Product Recommendation Quiz.

The follow-up email can carry the discount code, for the customer to copy and paste at checkout.

  1. Open the Quiz Builder.

  2. Go to the Notifications > TO RESPONDENT tab.

  3. Write the discount code into the message.

Setting the email up in the first place

See Setting Up Result Emails with Product Recommendation Quiz.

Give the discount only to customers who leave an email

Send the customer to one of two results pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.

  1. Go to Results Page Settings -> Multiple Results Pages and click Activate. A second results page is added.

    Multiple Results Pages activated in the Results Page settings

  2. Open Results page 2 settings, go to Discount code and paste your Shopify code in. Leave Results page 1 without one. See Apply the code automatically at checkout.

  3. In the Quiz builder, add a Yes or No question asking whether the customer wants a discount.

    Sample question

    Question: Would you like a discount?

    • Choice 1: Yes
    • Choice 2: No
  4. Add an email question after it.

    Question types menu in the Quiz builder

  5. Open Conditional logic on the discount question and add two jump rules.

    Two rules on the discount question

    • IF the answer to Would you like a discount? IS Yes THEN jump to the email question.
    • Click + Add another rule (OR), then IF the answer IS No THEN jump to Results page 1.

    Leave Default destination on the email question, so an unanswered question still moves the customer forward.

  6. Set the email question to jump to Results page 2.

    One rule on the email question

    Set Default destination to Results page 2. No condition is needed, because everyone who reaches this question goes to the same place.

  7. Click Save, then test the whole flow with Preview.

A simpler alternative

The discount does not always have to be withheld completely. Put the code in a Text block on one results page, then show that block with Display logic, based on how the customer answered.

Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.

  1. Go to Results Page Settings -> Advanced -> Multiple Results Pages and click Activate. A second Results Page is added.

    how to add discount multiple results pages

  2. Click edit to rename and edit the new page.

    how to add discount results pages

  3. Open Results Page 2 Settings -> Discount code settings -> Discount code, click add, and enter the code and the Visible % discount. Leave Results Page 1 without one.

    Create the code in Shopify first

    See Apply the code automatically at checkout.

  4. Go to the Quiz Builder and click + to add a discount question. Ask whether the customer wants a discount, with a Yes and a No choice.

    how to add discount discount question

  5. Click + again to add an email question after it.

    how to add discount email question

  6. Click conditional logic on the discount question, open Jump Logic and click Add Jump Logic.

    how to add discount jump logic 1

    • A customer who answers Yes goes on to the email question.
    • A customer who answers No goes to Results Page 1, the one without the discount.
  7. On the email question, set Always Jump to... to Results Page 2. Everyone who leaves an address lands on the page with the code.

    how to add discount jump logic 2

  8. Click the top-right Publish button, then test the whole flow with Preview.

More on jump logic

See how to use jump logic.

Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.

  1. Go to Results Page Settings -> Advanced -> Multiple Results Pages and click Activate. A second Results Page is added.

    how to add discount multiple results pages

  2. Click edit to rename and edit the new page.

    how to add discount results pages

  3. Set the coupon Cart URL on Results Page 2 only, as Apply the code automatically at checkout describes. Leave Results Page 1 pointing at your plain cart.

  4. Go to the Quiz Builder and click + to add a discount question. Ask whether the customer wants a discount, with a Yes and a No choice.

    how to add discount discount question

  5. Click + again to add an email question after it.

    how to add discount email question

  6. Click conditional logic on the discount question, open Jump Logic and click Add Jump Logic.

    how to add discount jump logic 1

    • A customer who answers Yes goes on to the email question.
    • A customer who answers No goes to Results Page 1, the one without the discount.
  7. On the email question, set Always Jump to... to Results Page 2. Everyone who leaves an address lands on the page with the code.

    how to add discount jump logic 2

  8. Click the top-right Publish button, then test the whole flow with Preview.

More on jump logic

See how to use jump logic.

Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.

  1. Go to Results Page Settings -> Advanced -> Multiple Results Pages and click Activate. A second Results Page is added.

    how to add discount multiple results pages

  2. Click edit to rename and edit the new page.

    how to add discount results pages

  3. Write the discount code into a Content block on Results Page 2. Leave Results Page 1 without one, so only the customers who leave an address ever read the code.

  4. Go to the Quiz Builder and click + to add a discount question. Ask whether the customer wants a discount, with a Yes and a No choice.

    how to add discount discount question

  5. Click + again to add an email question after it.

    how to add discount email question

  6. Click conditional logic on the discount question, open Jump Logic and click Add Jump Logic.

    how to add discount jump logic 1

    • A customer who answers Yes goes on to the email question.
    • A customer who answers No goes to Results Page 1, the one without the discount.
  7. On the email question, set Always Jump to... to Results Page 2. Everyone who leaves an address lands on the page with the code.

    how to add discount jump logic 2

  8. Click the top-right Publish button, then test the whole flow with Preview.

More on jump logic

See how to use jump logic.

Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.

  1. Go to Results Page Settings -> Advanced -> Multiple Results Pages and click Activate. A second Results Page is added.

    how to add discount multiple results pages

  2. Click edit to rename and edit the new page.

    how to add discount results pages

  3. Write the discount code into a Content block on Results Page 2. Leave Results Page 1 without one, so only the customers who leave an address ever read the code.

  4. Go to the Quiz Builder and click + to add a discount question. Ask whether the customer wants a discount, with a Yes and a No choice.

    how to add discount discount question

  5. Click + again to add an email question after it.

    how to add discount email question

  6. Click conditional logic on the discount question, open Jump Logic and click Add Jump Logic.

    how to add discount jump logic 1

    • A customer who answers Yes goes on to the email question.
    • A customer who answers No goes to Results Page 1, the one without the discount.
  7. On the email question, set Always Jump to... to Results Page 2. Everyone who leaves an address lands on the page with the code.

    how to add discount jump logic 2

  8. Click the top-right Publish button, then test the whole flow with Preview.

More on jump logic

See how to use jump logic.

Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.

  1. Go to Results Page Settings -> Advanced -> Multiple Results Pages and click Activate. A second Results Page is added.

    how to add discount multiple results pages

  2. Click edit to rename and edit the new page.

    how to add discount results pages

  3. Write the discount code into a Content block on Results Page 2. Leave Results Page 1 without one, so only the customers who leave an address ever read the code.

  4. Go to the Quiz Builder and click + to add a discount question. Ask whether the customer wants a discount, with a Yes and a No choice.

    how to add discount discount question

  5. Click + again to add an email question after it.

    how to add discount email question

  6. Click conditional logic on the discount question, open Jump Logic and click Add Jump Logic.

    how to add discount jump logic 1

    • A customer who answers Yes goes on to the email question.
    • A customer who answers No goes to Results Page 1, the one without the discount.
  7. On the email question, set Always Jump to... to Results Page 2. Everyone who leaves an address lands on the page with the code.

    how to add discount jump logic 2

  8. Click the top-right Publish button, then test the whole flow with Preview.

More on jump logic

See how to use jump logic.


This article explains how to put a discount code on the results page or in a follow-up email. It also covers giving the code only to customers who leave an email address.