How to Show Quiz Answers in Shopify Orders¶
You can see exactly which orders in your Shopify Orders tab came from the quiz, and what the customer answered to get there.
Pass the answers to Shopify¶
In the Built for Shopify version, quiz data reaches Shopify orders through custom JavaScript. You control which values are saved to the cart and carried through to the order.
You choose exactly what to save
This version does not write every quiz answer into Shopify order notes on its own.
You pass the values you want instead. That suits saving a result name, a score, a response ID, a campaign tag, or a handful of answers.
-
Add your custom code to the relevant question or results page. See how to add JavaScript.
-
Write the values you want to keep with
actions.updateCartAttributes({...}).if (quiz.metadata.isStoreRenderer && !quiz.metadata.inBuilder) { await actions.updateCartAttributes({ __quiz_response_id: quiz.metadata.responseId, __result_ref: quiz.currentResult?.ref || '', skincare_segment: quiz.variables.highest || '' }); }That example saves the response ID, the result reference and a custom segment tag from the results page.
Hidden and visible cart attributes
Prefix a name with
__to keep the value internal to the cart, rather than showing it as a normal storefront cart attribute.Leave the prefix off when the value should stay visible on Shopify cart and order screens.
-
Click
Save. This updates the live quiz. -
Take the quiz on your storefront and add the products to the cart.
-
Place a test order, then check that the values arrived on it.
The code has to run before the customer leaves for the cart
Cart attributes are written only when the customer reaches the page your custom JavaScript runs on. Put the code on a question or results page that comes before the cart.
Attribution needs an unbroken flow
Shopify Revenue Tracking and cart-based order tagging need an unbroken flow. The customer has to add products to the cart from the results page, then complete the checkout. An order placed later may no longer be attributed to the quiz.
Set the Checkout settings on your results page to proceed to cart, not proceed to checkout or link to product. See how to change checkout settings on your results page.
-
Connect the quiz to Shopify Customers.
-
Enable Order Notes in your Shopify theme.
-
Go to the
Connecttab in the quiz and scroll toShopify Orders Tagging. -
Click
connect. The quiz can then add tags and answers to your orders. -
Click
Publishin the top-right corner.
Every order in the Shopify Orders list then carries a small Notes section holding the quiz tags.

Click Edit to change what that section says.

Some themes block the tags
A few Shopify themes disable passing tags to orders. Those themes usually offer a setting to turn it back on.
Attribution needs an unbroken flow
Shopify Revenue Tracking and Orders Tagging need an unbroken flow. The customer has to add products to the cart from the results page, then complete the checkout. An order placed later is no longer attributed to the quiz.
Set the Checkout settings on your Results Page to proceed to cart, not proceed to checkout or link to product. See how to change checkout settings on your results page.
Not available on this platform
Quiz answers reach orders in the Shopify versions of the app only.
Not available on this platform
Quiz answers reach orders in the Shopify versions of the app only.
Not available on this platform
Quiz answers reach orders in the Shopify versions of the app only.
Not available on this platform
Quiz answers reach orders in the Shopify versions of the app only.
Testing the connection¶
Work through these when the cart or order tagging does not behave.
-
Open the question or results page holding your custom JavaScript, and confirm the code is saved.
-
Check that the code uses
actions.updateCartAttributes({...}). It has to run before the customer leaves for the cart or the checkout. -
Open the live storefront quiz in another browser, or in an incognito window. Do not test on the preview or on admin.revenuehunt.com.
-
Add a temporary
console.log('tagging cart')line and watch the browser console. It tells you whether the script runs at all. -
Take the quiz and add the products to the cart.
-
Place a valid Shopify test order.
-
Open that order in Shopify and check which cart attributes came through the checkout.
If the values are still missing, contact the support team with:
- your quiz URL
- the custom JavaScript you used
- the values you expected to save
- a screenshot of the order or the cart
Work through these when the orders tagging does not behave.
-
Go to the
Connecttab and disconnect the quiz fromShopify CustomersandShopify Orders Tagging. -
Click the top-right
Publishbutton. -
Connect the quiz to both of them again.
-
Click
Publishagain. That resets the connection. -
Open the live quiz on your site in another browser, or in an incognito window. Do not test on the preview or on admin.revenuehunt.com.
-
Take the quiz through to the results, giving the email address you will use at the checkout. An address such as
yourname+test1@example.comkeeps the test out of your real inbox. -
Add the products to the cart, then open the cart.
-
Place a valid Shopify test order.
-
Check the lead reached
Shopify Customers, markedRevenueHuntin its details. -
Open
Shopify Ordersand check that the order notes appear on the test order.
If the notes are still missing, contact the support team.
Not available on this platform
Quiz answers reach orders in the Shopify versions of the app only.
Not available on this platform
Quiz answers reach orders in the Shopify versions of the app only.
Not available on this platform
Quiz answers reach orders in the Shopify versions of the app only.
Not available on this platform
Quiz answers reach orders in the Shopify versions of the app only.
This article explains how to show quiz answers in Shopify Orders.