How to Add a Discount to Your Quiz¶
With the Built for Shopify version of the RevenueHunt app, you can:
- add your Shopify discount code to be applied automatically at checkout,
- add a discount code as text to quiz questions or results page,
- add the discount code to the result emails.
A discount applied to a product in Shopify Products shows on the quiz results page on its own. Otherwise the discount code is applied at checkout, and the reduced price is visible at the checkout stage only.
A discount coupon in your quiz gives the customer a special offer, on the results page or in a follow-up email.

This guide explains how to implement Discount Coupons for Checkout with the RevenueHunt app.
Include Discount Code as text
You can also add the discount code as text to the quiz questions or results page by typing the discount code in the text field. Then customers will be able to copy and paste the discount code at checkout.
A discount coupon in your quiz gives the customer a special offer, on the results page or in a follow-up email.

This guide explains how to implement Discount Coupons for Checkout with the RevenueHunt app.
Include Discount Code as text
You can also add the discount code as text to the quiz questions or results page by typing the discount code in the text field. Then customers will be able to copy and paste the discount code at checkout.
A discount coupon in your quiz gives the customer a special offer, on the results page or in a follow-up email.

This guide explains how to implement Discount Coupons for Checkout with the RevenueHunt app.
Include Discount Code as text
You can also add the discount code as text to the quiz questions or results page by typing the discount code in the text field. Then customers will be able to copy and paste the discount code at checkout.
A discount coupon in your quiz gives the customer a special offer, on the results page or in a follow-up email.

This guide explains how to implement Discount Coupons for Checkout with the RevenueHunt app.
Include Discount Code as text
You can also add the discount code as text to the quiz questions or results page by typing the discount code in the text field. Then customers will be able to copy and paste the discount code at checkout.
A discount coupon in your quiz gives the customer a special offer, on the results page or in a follow-up email.

This guide explains how to implement Discount Coupons for Checkout with the RevenueHunt app.
Include Discount Code as text
You can also add the discount code as text to the quiz questions or results page by typing the discount code in the text field. Then customers will be able to copy and paste the discount code at checkout.
Set up discount on the results page¶
Automatic discount code¶
You can add a discount code to be applied automatically at checkout when users finish the quiz and proceed to cart.
Discount code is only applied at Shopify checkout
The discount code will not be visible on the quiz preview or the results page. It is applied automatically when the customer proceeds to Shopify checkout.
-
Create a Discount code in Shopify: Create the code in Shopify before you add it to the results page.
Create a Discount code in Shopify
You need to create a discount code in Shopify first before adding it to the quiz results page.
- Navigate to the Shopify admin panel and select the
Discountstab. - Click on
Create Discountto set up a new discount code. - Choose the type of discount (e.g., percentage, fixed amount). Enter a discount code name (e.g.,
quiz123) or specify the discount amount (e.g., 20%). - Select applicable products from your catalog.
- Save the discount settings and copy the discount code.
- Navigate to the Shopify admin panel and select the
-
Configuring the Discount code in Quiz results Page: Configure the code on the results page, so it applies at checkout.
- Open the RevenueHunt Quizzes app and open your quiz by clicking
Customize. -
Navigate to the 'Results page > Results page settings' by clicking on the Results page name.

-
Scroll to the
Discount codesettings section.
-
Paste the copied discount code from Shopify into the designated field.
- Save the changes with the top-right
Savebutton to apply the discount code to the quiz results.
- Open the RevenueHunt Quizzes app and open your quiz by clicking
-
Testing the Discount code: Test the live quiz to ensure the discount code is applied correctly at checkout.
- After setting up the discount code, visit your website and take a sample quiz.
- Proceed to the cart and then to checkout.
- Verify that the discount code
quiz123is automatically applied to eligible products in the cart.
Discount code only works on live quiz
The discount code will not be visible on the quiz preview or the results page. It is applied automatically when the customer proceeds to Shopify checkout.
Discount code as text¶
You can add a discount code as text within a text block on the Quiz results page. Users will be able to copy and paste the discount code at checkout.
- Open the Results page.
- Click on
Add block. - Select
Textblock. - Add the discount code to the text field.
- Save the changes with the top-right
Savebutton.

Discount code with JavaScript¶
Check JavaScript guide
Check this article to learn how to add custom JavaScript to the results page: How to Add JavaScript to the Quiz.
You can use JavaScript to add a discount code to the results page.
- Open the Results page.
- Open the Results page settings.
- Scroll down to the
Custom JavaScriptsection. -
Ask your developer to use the
await Quiz.applyDiscountCode()function to apply the discount code to the Custom JavaScript block.Get help with custom JavaScript
Click on
✨Get help with custom JavaScriptto open a chat window with the Quiz Copilot AI. It can directly write JavaScript code for you. -
Save the changes with the top-right
Savebutton.
Products Discounted in Shopify Products
If you have a discount applied to certain products in your store, these reduced prices will be reflected in the quiz results page automatically.
Step 1: Generate a Discount Code
To create a Shopify discount code, refer to this helpful guide. Activation of this code is necessary before integrating it with your quiz to ensure functionality at checkout.
Select the manual option for a discount code in Shopify. The app can only sync with codes created that way.
Note
These discounts are managed in Shopify, not in the app.
Step 2: Configure Your Discount Code on the Results Page
You can add Static or Dynamic discount codes to your quiz.
Static Discount
- Navigate to Results Page Settings > Discount Settings and access the Discount Code Settings section.
-
Enter the discount code in the
Codefield. It is applied at checkout.
Visible discount- Select thediscount %from the dropdown. The percentage discount will be visible on the results page products. The discount code will be automatically redeemed at checkout.Code- Type a discount code that corresponds to this discount. You have to set up this discount code in your store > Shopify Discounts first.
Dynamic Discount
The results page supports several Shopify discount codes, applied according to the cart's total value.
-
Create your Shopify discount codes first, as Set up discount on the results page explains.
Note
Only manual discount codes work with the app.
-
Proceed to the quiz's Results Page tab. Within Results Page Settings > Discounts, activate Dynamic Discounts. Click "activate" to open the discount menu.

Enable notifications- A toast notification will appear when a customer qualifies for a discount. Toggle to enable/disable.Encourage discounts- The notification will also include a message telling the customer how close they are to receiving the next highest discount. Toggle to enable/disable.Discount [A] Settings
Discount code- Type a discount code that corresponds to this discount. You have to set up this discount code in your store > Shopify Discounts first.Discount percentage- Type the discount %. The percentage discount will be visible in the results page products. The discount code will be automatically redeemed at checkout.Min. value in cart- Type the value of products added to the cart on the results page above which the discount will be applied.+ / add another discount- Adds a new dynamic discount (Discount [B]).bin / delete this discount- deletes this dynamic discount.add a discount- Adds a new dynamic discount below (Discount [B]).deactivate- Deactivates dynamic discounts.
Step 3: Publish Changes
- Click the top-right
Publishbutton to apply your changes to the live quiz/preview.
Alternatively
Your developer can also add a discount code to the results page using custom JavaScript code added to the Results page.
Tip
For more on adding custom JavaScript to a results page, see How to Add JavaScript to the Quiz.
Step 1: Generate a Discount Code
A WooCommerce store needs the Advanced Coupons for WooCommerce plugin for this to work.
Create a coupon code, then go to the URL Coupons section. Point Redirect To URL at your cart page. Copy the URI, which is the end part of the URL, without the protocol and your domain name:

Example: if the Coupon URL which appears is https://yourdomain.com/coupon/codexyz/, then the part you need to copy is /coupon/codexyz/.
Step 2: Configure Your Discount Code on the Results Page
Then in the Product Recommendation Quiz, go to the Results Page Settings > Checkout Settings and paste the copied URI in the Cart URL field.

The coupon code is then applied when the customer finishes the quiz and goes to the cart. They are sent to the cart page in your store.
Step 3: Publish Changes
- Click the top-right
Publishbutton to apply your changes to the live quiz/preview.
Alternatively
Your developer can also add a discount code to the Results page with custom JavaScript. For more, see How to Add JavaScript to the Quiz.
Tip
For more on adding custom JavaScript to a results page, see How to Add JavaScript to the Quiz.
It is not currently possible to add discount coupons into your quiz built with RevenueHunt app for Magento.
Your developer can, however, add a discount code to the results page using custom JavaScript code added to the Results page.
Tip
For more on adding custom JavaScript to a results page, see How to Add JavaScript to the Quiz.
It is not currently possible to add discount coupons into your quiz built with RevenueHunt app for BigCommerce.
Your developer can, however, add a discount code to the results page using custom JavaScript code added to the Results page.
Tip
For more on adding custom JavaScript to a results page, see How to Add JavaScript to the Quiz.
It is not currently possible to add discount coupons into your quiz built with Standalone version of the RevenueHunt app.
Your developer can still add a discount code to the Results page with custom JavaScript. For more, see How to Add JavaScript to the Quiz.
Tip
For more on adding custom JavaScript to a results page, see How to Add JavaScript to the Quiz.
Include discount codes in Follow-up emails¶
You can put the discount code in the follow-up email that carries the quiz results. The customer can then copy the code and paste it at checkout.
Go to Quiz settings, open the Emails to respondents tab, and add your discount code to the message.
Tip
To set up and customize the quiz result email, see Setting Up Result Emails with Product Recommendation Quiz.
You can put the discount code in the follow-up email and on the results page. The customer can then copy the code and paste it at checkout.
Go to the Quiz Builder, open the Notifications > TO RESPONDENT tab, and add your discount code to the message.
Tip
To set up and customize the quiz result email, see Setting Up Result Emails with Product Recommendation Quiz.
You can put the discount code in the follow-up email and on the results page. The customer can then copy the code and paste it at checkout.
Go to the Quiz Builder, open the Notifications > TO RESPONDENT tab, and add your discount code to the message.
Tip
To set up and customize the quiz result email, see Setting Up Result Emails with Product Recommendation Quiz.
You can put the discount code in the follow-up email and on the results page. The customer can then copy the code and paste it at checkout.
Go to the Quiz Builder, open the Notifications > TO RESPONDENT tab, and add your discount code to the message.
Tip
To set up and customize the quiz result email, see Setting Up Result Emails with Product Recommendation Quiz.
You can put the discount code in the follow-up email and on the results page. The customer can then copy the code and paste it at checkout.
Go to the Quiz Builder, open the Notifications > TO RESPONDENT tab, and add your discount code to the message.
Tip
To set up and customize the quiz result email, see Setting Up Result Emails with Product Recommendation Quiz.
You can put the discount code in the follow-up email and on the results page. The customer can then copy the code and paste it at checkout.
Go to the Quiz Builder, open the Notifications > TO RESPONDENT tab, and add your discount code to the message.
Tip
To set up and customize the quiz result email, see Setting Up Result Emails with Product Recommendation Quiz.
Apply discount only if customer leaves their email¶
Yes. Send the customer to one of two results pages, depending on whether they answer the email question. The default page carries no discount, and the second page carries the discount code.
-
Create multiple results pages: Go to
Results Page Settings -> Multiple Results Pagesand clickActivate. A second results page is added.
-
Add the discount code to Results page 2 only: Leave Results page 1 as the default. Open Results page 2 settings, go to the
Discount codesection and paste your Shopify code. Create it in Shopify first, as Set up discount on the results page describes. -
Add a discount question: In the Quiz builder, add a
YesorNochoice question asking whether the customer wants a discount.Sample question
Question: Would you like a discount?
- Choice 1: Yes
- Choice 2: No
-
Add an email question: Add an email question so customers can leave their email.

-
Add Jump logic to the discount question: Open the question's
Conditional logicand add a rule:- If the customer answers
Yes, they continue to the email question. - If the customer answers
No, they jump straight to Results page 1 (no discount).
Two rules on the discount question
- IF the answer to
Do you want a discount?ISYesTHEN jump toQuestion: What is your email? + Add another rule (OR), then IF the answer toDo you want a discount?ISNoTHEN jump toResults page 1.
Leave
Default destinationon the email question, so an unanswered question still moves the customer forward. - If the customer answers
-
Add Jump logic to the email question: Set the email question to
Always jump toResults page 2 (discount). Everyone who leaves an email then lands on the page with the code.One rule on the email question
Set
Default destinationtoResults page 2. No condition is needed here, because every customer who reaches this question is being sent to the same place. -
Save and test: Save your changes and test the flow with the
Previewbutton.
Simpler alternative
If the discount does not have to be blocked completely, add the code as a Text block on the results page. Then use Display logic to show that block only to customers who answered a certain way.
Products discounted in Shopify
If you have a discount applied to certain products in your store, these reduced prices are reflected on the quiz results page automatically.
In the RevenueHunt app, you can apply a discount at checkout only for the customers who leave their email in the quiz. To set this up you need to follow these steps:
- Create multiple results pages: To do that, go to the
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. The Multiple Results Pages Settings screen appears, and a second Results page is added.
- You can then rename the page and edit it by clicking
edit.
-
Add discount code: Leave Results Page 1 as the default. Put the discount on Results Page 2. Open
Results Page 2 Settings -> Discount code settings -> Discount codeand clickadd. You can then edit theVisible % discountand add the code.Warning
Set the discount up in your Shopify store first. See Set up discount on the results page.
-
Add a discount question: Next, navigate to the Quiz Builder and add a
discount questionby clicking+.
-
Add an email question: Then, add an
email questionby clicking+.
-
Add Jump Logic: Send the customer to Results Page 1 or Results Page 2, based on their answer. This needs two Jump Logic statements.
Tip
To learn more about Jump Logic, check How to Use Jump Logic.
-
FIRST JUMP LOGIC – DISCOUNT QUESTION: To add Jump Logic to the discount question, click the
conditional logicbutton. In theJump Logicmenu, selectAdd Jump Logic. Add the following logic condition:
- If the customer answers ‘Yes’ to the discount question, they will automatically go to the next question (the email question).
- If the customer answers ‘No’ to the discount question, they will be automatically redirected to the Results Page 1 (no discount).
-
SECOND JUMP LOGIC – EMAIL QUESTION: Add Jump Logic to the email question. Use
Always Jump to...to send the customer to Results Page 2 (discount).
- Test the quiz: Once the discounts are set up, update the preview/live quiz with the
Publishbutton. Then, test the quiz by clicking thePreviewbutton in the top right corner of the app.
In the RevenueHunt app, you can apply a discount at checkout only for the customers who leave their email in the quiz. To set this up you need to follow these steps:
- Create multiple results pages: To do that, go to the
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. The Multiple Results Pages Settings screen appears, and a second Results page is added.
- You can then rename the page and edit it by clicking
edit.
- Add discount code: Follow Set up discount on the results page to add a discount code to your quiz.
-
Add a discount question: Next, navigate to the Quiz Builder and add a
discount questionby clicking+.
-
Add an email question: Then, add an
email questionby clicking+.
-
Add Jump Logic: Send the customer to Results Page 1 or Results Page 2, based on their answer. This needs two Jump Logic statements.
Tip
To learn more about Jump Logic, check How to Use Jump Logic.
-
FIRST JUMP LOGIC – DISCOUNT QUESTION: To add Jump Logic to the discount question, click the
conditional logicbutton. In theJump Logicmenu, selectAdd Jump Logic. Add the following logic condition:
- If the customer answers ‘Yes’ to the discount question, they will automatically go to the next question (the email question).
- If the customer answers ‘No’ to the discount question, they will be automatically redirected to the Results Page 1 (no discount).
-
SECOND JUMP LOGIC – EMAIL QUESTION: Add Jump Logic to the email question. Use
Always Jump to...to send the customer to Results Page 2 (discount).
- Test the quiz: Once the discounts are set up, update the preview/live quiz with the
Publishbutton. Then, test the quiz by clicking thePreviewbutton in the top right corner of the app.
In the RevenueHunt app, you can apply a discount at checkout only for the customers who leave their email in the quiz. To set this up you need to follow these steps:
- Create multiple results pages: To do that, go to the
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. The Multiple Results Pages Settings screen appears, and a second Results page is added.
- You can then rename the page and edit it by clicking
edit.
- Add discount code: Follow Set up discount on the results page to add a discount code to your quiz.
-
Add a discount question: Next, navigate to the Quiz Builder and add a
discount questionby clicking+.
-
Add an email question: Then, add an
email questionby clicking+.
-
Add Jump Logic: Send the customer to Results Page 1 or Results Page 2, based on their answer. This needs two Jump Logic statements.
Tip
To learn more about Jump Logic, check How to Use Jump Logic.
-
FIRST JUMP LOGIC – DISCOUNT QUESTION: To add Jump Logic to the discount question, click the
conditional logicbutton. In theJump Logicmenu, selectAdd Jump Logic. Add the following logic condition:
- If the customer answers ‘Yes’ to the discount question, they will automatically go to the next question (the email question).
- If the customer answers ‘No’ to the discount question, they will be automatically redirected to the Results Page 1 (no discount).
-
SECOND JUMP LOGIC – EMAIL QUESTION: Add Jump Logic to the email question. Use
Always Jump to...to send the customer to Results Page 2 (discount).
- Test the quiz: Once the discounts are set up, update the preview/live quiz with the
Publishbutton. Then, test the quiz by clicking thePreviewbutton in the top right corner of the app.
In the RevenueHunt app, you can apply a discount at checkout only for the customers who leave their email in the quiz. To set this up you need to follow these steps:
- Create multiple results pages: To do that, go to the
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. The Multiple Results Pages Settings screen appears, and a second Results page is added.
- You can then rename the page and edit it by clicking
edit.
- Add discount code: Follow Set up discount on the results page to add a discount code to your quiz.
-
Add a discount question: Next, navigate to the Quiz Builder and add a
discount questionby clicking+.
-
Add an email question: Then, add an
email questionby clicking+.
-
Add Jump Logic: Send the customer to Results Page 1 or Results Page 2, based on their answer. This needs two Jump Logic statements.
Tip
To learn more about Jump Logic, check How to Use Jump Logic.
-
FIRST JUMP LOGIC – DISCOUNT QUESTION: To add Jump Logic to the discount question, click the
conditional logicbutton. In theJump Logicmenu, selectAdd Jump Logic. Add the following logic condition:
- If the customer answers ‘Yes’ to the discount question, they will automatically go to the next question (the email question).
- If the customer answers ‘No’ to the discount question, they will be automatically redirected to the Results Page 1 (no discount).
-
SECOND JUMP LOGIC – EMAIL QUESTION: Add Jump Logic to the email question. Use
Always Jump to...to send the customer to Results Page 2 (discount).
- Test the quiz: Once the discounts are set up, update the preview/live quiz with the
Publishbutton. Then, test the quiz by clicking thePreviewbutton in the top right corner of the app.
In the RevenueHunt app, you can apply a discount at checkout only for the customers who leave their email in the quiz. To set this up you need to follow these steps:
- Create multiple results pages: To do that, go to the
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. The Multiple Results Pages Settings screen appears, and a second Results page is added.
- You can then rename the page and edit it by clicking
edit.
- Add discount code: Follow Set up discount on the results page to add a discount code to your quiz.
-
Add a discount question: Next, navigate to the Quiz Builder and add a
discount questionby clicking+.
-
Add an email question: Then, add an
email questionby clicking+.
-
Add Jump Logic: Send the customer to Results Page 1 or Results Page 2, based on their answer. This needs two Jump Logic statements.
Tip
To learn more about Jump Logic, check How to Use Jump Logic.
-
FIRST JUMP LOGIC – DISCOUNT QUESTION: To add Jump Logic to the discount question, click the
conditional logicbutton. In theJump Logicmenu, selectAdd Jump Logic. Add the following logic condition:
- If the customer answers ‘Yes’ to the discount question, they will automatically go to the next question (the email question).
- If the customer answers ‘No’ to the discount question, they will be automatically redirected to the Results Page 1 (no discount).
-
SECOND JUMP LOGIC – EMAIL QUESTION: Add Jump Logic to the email question. Use
Always Jump to...to send the customer to Results Page 2 (discount).
- Test the quiz: Once the discounts are set up, update the preview/live quiz with the
Publishbutton. Then, test the quiz by clicking thePreviewbutton in the top right corner of the app.
By following these steps, you can integrate discounts into your quiz, improve customer engagement and potentially increase conversions.