How to Track Quiz Performance with Google Analytics¶
To track quiz performance with Google Analytics in Shopify (legacy), you'll need to implement custom JavaScript tracking. This allows you to monitor specific quiz events and user interactions.
This article explains how to track quiz events and performance in Google Analytics.
Google Analytics offers a powerful way to gain insights into user engagement with your quizzes. Linking your quiz with Google Analytics can provide valuable data on user interaction, pinpoint engagement issues, and help minimize abandonment rates.
The 💎 Built for Shopify
version of RevenueHunt app includes native GA4 integration for comprehensive event tracking.
This article will guide you through the process of connecting your quiz to Google Analytics and tracking quiz events.
To track quiz performance with Google Analytics in WooCommerce, you'll need to implement custom JavaScript tracking. This allows you to monitor specific quiz events and user interactions.
This article explains how to track quiz events and performance in Google Analytics.
To track quiz performance with Google Analytics in Magento, you'll need to implement custom JavaScript tracking. This allows you to monitor specific quiz events and user interactions.
This article explains how to track quiz events and performance in Google Analytics.
To track quiz performance with Google Analytics in BigCommerce, you'll need to implement custom JavaScript tracking. This allows you to monitor specific quiz events and user interactions.
This article explains how to track quiz events and performance in Google Analytics.
To track quiz performance with Google Analytics in a Standalone version of RevenueHunt app, you'll need to implement custom JavaScript tracking. This allows you to monitor specific quiz events and user interactions.
This article explains how to track quiz events and performance in Google Analytics.
Connect Quiz to Google Analytics¶
Note
Google Analytics GA4 tracking works best if you embed your quiz on a new page in your online store. Follow the instuctions in this article to set this up.
To track quiz events and performance in Google Analytics, you'll need to implement custom JavaScript tracking to your website, preferably the page where the quiz is embeded.
To implement custom event tracking for your quiz, follow these steps:
-
Understand the Callback Function: Visit the FAQ page to learn how our callback function works and how it can be used for tracking custom events.
-
Embed the Custom Script: Add the following script to your store's theme where the quiz is featured (preferably sitewide in your theme's main template file):
-
Customize Event Tracking: Modify the script with appropriate event names, labels, and values to track specific user actions. For example:
<script> function prqQuizCallback(quizResponse){ // Track quiz start if(quizResponse.type === 'quiz_started') { gtag('event', 'quiz_start', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } // Track question answers if(quizResponse.type === 'question_answered') { gtag('event', 'question_answer', { 'event_category': 'quiz', 'event_label': quizResponse.questionTitle, 'value': quizResponse.answer }); } // Track quiz completion if(quizResponse.type === 'quiz_completed') { gtag('event', 'quiz_complete', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } } </script>
-
Monitor and Adjust: Once implemented, regularly check your Google Analytics dashboard to ensure events are being tracked correctly. Adjust the tracking code as needed based on your specific requirements.
Note
Google Analytics GA4 tracking works best if you embed your quiz on a new page in your online store. Follow the instuctions in this article to set this up.
-
Make sure you have set up the GA4 tracking on your website.
Tip
Don't know how to connect your website to Google Analytics or find your GA tracking code? Check this link.
-
Head to your quiz and click on the Integrations tab.
- Click on the
Activate
button in the Google Analytics section. - Click
Save
to confirm the changes. - Once activated the quiz will connect to the GA4 tracking code already present on your website. It can take up to 72 hours for the data to start appearing in your Meta portal.
Optional: Add Custom Trackers
If you want you can add custom trackers to your quiz to track specific events and user interactions. This is useful if you want to track events that are not covered by the default tracking.
To implement custom event tracking for your quiz, follow these steps: 1. Understand the Callback Function: Visit the FAQ page to learn how our callback function works and how it can be used for tracking custom events. 2. Embed the Custom Script: Add the following script to your store's theme where the quiz is featured (preferably sitewide in your theme's main template file):
<script>
function prqQuizCallback(quizResponse){
gtag('event', 'your_event_name', {
'event_category': 'quiz',
'event_label': 'specific_label',
'value': quizResponse.someValue
});
}
</script>
<script>
function prqQuizCallback(quizResponse){
// Track quiz start
if(quizResponse.type === 'quiz_started') {
gtag('event', 'quiz_start', {
'event_category': 'quiz',
'event_label': quizResponse.quizName
});
}
// Track question answers
if(quizResponse.type === 'question_answered') {
gtag('event', 'question_answer', {
'event_category': 'quiz',
'event_label': quizResponse.questionTitle,
'value': quizResponse.answer
});
}
// Track quiz completion
if(quizResponse.type === 'quiz_completed') {
gtag('event', 'quiz_complete', {
'event_category': 'quiz',
'event_label': quizResponse.quizName
});
}
}
</script>
Note
Google Analytics GA4 tracking works best if you embed your quiz on a new page in your online store. Follow the instuctions in this article to set this up.
To track quiz events and performance in Google Analytics, you'll need to implement custom JavaScript tracking to your website, preferably the page where the quiz is embeded.
To implement custom event tracking for your quiz, follow these steps:
-
Understand the Callback Function: Visit the FAQ page to learn how our callback function works and how it can be used for tracking custom events.
-
Embed the Custom Script: Add the following script to your store's theme where the quiz is featured (preferably sitewide in your theme's main template file):
-
Customize Event Tracking: Modify the script with appropriate event names, labels, and values to track specific user actions. For example:
<script> function prqQuizCallback(quizResponse){ // Track quiz start if(quizResponse.type === 'quiz_started') { gtag('event', 'quiz_start', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } // Track question answers if(quizResponse.type === 'question_answered') { gtag('event', 'question_answer', { 'event_category': 'quiz', 'event_label': quizResponse.questionTitle, 'value': quizResponse.answer }); } // Track quiz completion if(quizResponse.type === 'quiz_completed') { gtag('event', 'quiz_complete', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } } </script>
-
Monitor and Adjust: Once implemented, regularly check your Google Analytics dashboard to ensure events are being tracked correctly. Adjust the tracking code as needed based on your specific requirements.
Note
Google Analytics GA4 tracking works best if you embed your quiz on a new page in your online store. Follow the instuctions in this article to set this up.
To track quiz events and performance in Google Analytics, you'll need to implement custom JavaScript tracking to your website, preferably the page where the quiz is embeded.
To implement custom event tracking for your quiz, follow these steps:
-
Understand the Callback Function: Visit the FAQ page to learn how our callback function works and how it can be used for tracking custom events.
-
Embed the Custom Script: Add the following script to your store's theme where the quiz is featured (preferably sitewide in your theme's main template file):
-
Customize Event Tracking: Modify the script with appropriate event names, labels, and values to track specific user actions. For example:
<script> function prqQuizCallback(quizResponse){ // Track quiz start if(quizResponse.type === 'quiz_started') { gtag('event', 'quiz_start', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } // Track question answers if(quizResponse.type === 'question_answered') { gtag('event', 'question_answer', { 'event_category': 'quiz', 'event_label': quizResponse.questionTitle, 'value': quizResponse.answer }); } // Track quiz completion if(quizResponse.type === 'quiz_completed') { gtag('event', 'quiz_complete', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } } </script>
-
Monitor and Adjust: Once implemented, regularly check your Google Analytics dashboard to ensure events are being tracked correctly. Adjust the tracking code as needed based on your specific requirements.
Note
Google Analytics GA4 tracking works best if you embed your quiz on a new page in your online store. Follow the instuctions in this article to set this up.
To track quiz events and performance in Google Analytics, you'll need to implement custom JavaScript tracking to your website, preferably the page where the quiz is embeded.
To implement custom event tracking for your quiz, follow these steps:
-
Understand the Callback Function: Visit the FAQ page to learn how our callback function works and how it can be used for tracking custom events.
-
Embed the Custom Script: Add the following script to your store's theme where the quiz is featured (preferably sitewide in your theme's main template file):
-
Customize Event Tracking: Modify the script with appropriate event names, labels, and values to track specific user actions. For example:
<script> function prqQuizCallback(quizResponse){ // Track quiz start if(quizResponse.type === 'quiz_started') { gtag('event', 'quiz_start', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } // Track question answers if(quizResponse.type === 'question_answered') { gtag('event', 'question_answer', { 'event_category': 'quiz', 'event_label': quizResponse.questionTitle, 'value': quizResponse.answer }); } // Track quiz completion if(quizResponse.type === 'quiz_completed') { gtag('event', 'quiz_complete', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } } </script>
-
Monitor and Adjust: Once implemented, regularly check your Google Analytics dashboard to ensure events are being tracked correctly. Adjust the tracking code as needed based on your specific requirements.
Note
Google Analytics GA4 tracking works best if you embed your quiz on a new page in your online store. Follow the instuctions in this article to set this up.
To track quiz events and performance in Google Analytics, you'll need to implement custom JavaScript tracking to your website, preferably the page where the quiz is embeded.
To implement custom event tracking for your quiz, follow these steps:
-
Understand the Callback Function: Visit the FAQ page to learn how our callback function works and how it can be used for tracking custom events.
-
Embed the Custom Script: Add the following script to your store's theme where the quiz is featured (preferably sitewide in your theme's main template file):
-
Customize Event Tracking: Modify the script with appropriate event names, labels, and values to track specific user actions. For example:
<script> function prqQuizCallback(quizResponse){ // Track quiz start if(quizResponse.type === 'quiz_started') { gtag('event', 'quiz_start', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } // Track question answers if(quizResponse.type === 'question_answered') { gtag('event', 'question_answer', { 'event_category': 'quiz', 'event_label': quizResponse.questionTitle, 'value': quizResponse.answer }); } // Track quiz completion if(quizResponse.type === 'quiz_completed') { gtag('event', 'quiz_complete', { 'event_category': 'quiz', 'event_label': quizResponse.quizName }); } } </script>
-
Monitor and Adjust: Once implemented, regularly check your Google Analytics dashboard to ensure events are being tracked correctly. Adjust the tracking code as needed based on your specific requirements.
Track Customer Behavior (Events)¶
Once set up, you'll be able to see customer events in your Google Analytics dashboard, under Reports > View user engagement and retention > Events
.
If you're not seeing the events, please double-check the code you've added to the page where the quiz is embeded.
You'll be able to see quiz usage and customer behavior in your Google Analytics dashboard, under Reports > View user engagement and retention > Events
.
Data may take up to 72 hours to appear
If you don't see the events, check the View realtime
tab in GA4 or wait a day or two for the data to appear. Google Analytics can take up to 72 hours to process the data.
Events are triggered every time a customer starts a quiz, views a question, picks a choice, gets to the results page, adds a product to the cart, and proceeds to the cart/checkout. You can check more data about unique events by clicking on the specific Event name.
Trigger | Event Name | Event Parameters |
---|---|---|
User starts a quiz (clicks on the button of the first question or the welcome question) | quiz_started_{quiz_name} | quiz_name |
User views a question | question_viewed_{question_title} | question_title |
User clicks on a choice or selects an option from a dropdown | block_answered_{choice_text} | choice_text |
User responds to the email question | email_lead_{quiz_name} | quiz_name |
User responds to the phone question | phone_lead_{quiz_name} | quiz_name |
User gets to results page | results_page_viewed_{results_title} | results_title |
A certain product is recommended in the results page | product_recommended_{product_name} | product_name |
Customer clicks on product (view product button or image) | product_clicked_{product_name} | product_name |
Customer adds a product to cart (via "add to cart" or "add all to cart" buttons) | product_added_to_cart_{product_name} | product_name |
Customer proceeds to cart/checkout | proceed_to_checkout_{quiz_name} | quiz_name |
Customer retakes quiz | retake_quiz_{quiz_name} | quiz_name |
Once set up, you'll be able to see customer events in your Google Analytics dashboard, under Reports > View user engagement and retention > Events
.
If you're not seeing the events, please double-check the code you've added to the page where the quiz is embeded.
Once set up, you'll be able to see customer events in your Google Analytics dashboard, under Reports > View user engagement and retention > Events
.
If you're not seeing the events, please double-check the code you've added to the page where the quiz is embeded.
Once set up, you'll be able to see customer events in your Google Analytics dashboard, under Reports > View user engagement and retention > Events
.
If you're not seeing the events, please double-check the code you've added to the page where the quiz is embeded.
Once set up, you'll be able to see customer events in your Google Analytics dashboard, under Reports > View user engagement and retention > Events
.
If you're not seeing the events, please double-check the code you've added to the page where the quiz is embeded.
Track Quiz Revenue¶
Depending on the custom events that you've programed in the first step, you may be able to see quiz revenue in your Google Analytics.
Refer to the Google Analytics documentation for more information on how to track revenue from custom events or expolre the GA4 Explorations.
GA4 doesn’t “automatically” tie custom events to purchases. But you can segment/filter by those events and then look at purchase revenue.
Here are some options:
Option 1 - Create Free Form Exploration¶
You can measure how much revenue your quiz generates directly in GA4 using an Exploration. This walkthrough shows how to build a Free form table comparing quiz users with all users.
- Go to
Explore → + → Free form
. -
Create the “Quiz Users” segment. In the Variables panel, under Segments, click +. Choose User segment. Set the condition: Include users where
Event name
→contains
→quiz_started
(or usematches regex
→^quiz_started_.*$
). Name itQuiz Users
→Save and apply
. Also add the defaultAll Users
segment for comparison. -
Add Dimensions and Metrics. In the Variables panel:
Dimensions
→+
→ add:Event name
Metrics
→+
→ add:Event count
,Purchases
,Total revenue
-
Configure the Tab Settings. In the Tab Settings panel:
-
Segments
: selectAll Users
andQuiz Users
-
Rows
:Event name
-
Columns
: leave empty, or set toSegment
for side-by-side comparison -
Values
:Event count
,Purchases
,Total revenue
-
Filters
:Event name contains quiz_started
-
Visualization
:Table
(or Bar chart) -
Date range
: e.g.Last 28 days
You’ll now see a table showing revenue and purchases from quiz users (people who triggered a quiz_started event) compared to all users.
-
-
Save and Reuse. Rename your exploration (e.g.
Quiz Revenue
). Use the star or share option so teammates can find it easily.Optional Variations
-
Compare specific quizzes: Use
Filters
→Event name
contains your quiz ID/text
(e.g.,quiz_started_skincare_quiz_usa
). -
If your quiz is on a dedicated page: Create a Session/User segment: include users where Page location contains
/pages/skin-quiz
. This shows revenue for anyone visiting that quiz page.
-
Option 2 – Attribution via Source/Medium¶
If you’re tagging quiz entry points with UTM parameters (like utm_source=quiz
or utm_campaign=quiz_name
), GA4’s Advertising → Attribution → Model comparison
will show revenue attributed to those.
You'll see revenue attributed to the quiz in Engagement > Conversions > Event name > purchase
. Click on the purchase
event.
Add a Source
column next to the default channel grouping and look for the rows which include the revenuehunt
source.
Depending on the custom events that you've programed in the first step, you may be able to see quiz revenue in your Google Analytics.
Refer to the Google Analytics documentation for more information on how to track revenue from custom events or expolre the GA4 Explorations.
Depending on the custom events that you've programed in the first step, you may be able to see quiz revenue in your Google Analytics.
Refer to the Google Analytics documentation for more information on how to track revenue from custom events or expolre the GA4 Explorations.
Depending on the custom events that you've programed in the first step, you may be able to see quiz revenue in your Google Analytics.
Refer to the Google Analytics documentation for more information on how to track revenue from custom events or expolre the GA4 Explorations.
Depending on the custom events that you've programed in the first step, you may be able to see quiz revenue in your Google Analytics.
Refer to the Google Analytics documentation for more information on how to track revenue from custom events or expolre the GA4 Explorations.
Use GA4 Explorations¶
Google Analytics 4 (GA4) offers Explorations, a powerful tool for digging deeper into your quiz data. Standard reports show you high-level trends, but Explorations let you ask more specific questions about how customers interact with your quiz and how it impacts revenue.
With Explorations, you can:
-
Compare quiz users vs. all users. See how much revenue is generated by customers who start a quiz compared to those who don’t.
-
Break down results by quiz. If you run multiple quizzes, use Explorations to see which quiz names bring in the most purchases and revenue.
-
Build funnels. Visualize the full journey from quiz_started → results_page_viewed → product_added_to_cart → purchase, and spot where users drop off.
-
Analyze user paths. Discover what customers do after completing your quiz—do they view recommended products, add to cart, or head straight to checkout?
-
Create segments and audiences. Build an audience of “Quiz Users” for ongoing analysis or remarketing in Google Ads.
Refer to the Google Analytics documentation for more information on how to use GA4 Explorations.
Google Analytics 4 (GA4) offers Explorations, a powerful tool for digging deeper into your quiz data. Standard reports show you high-level trends, but Explorations let you ask more specific questions about how customers interact with your quiz and how it impacts revenue.
With Explorations, you can:
-
Compare quiz users vs. all users. See how much revenue is generated by customers who start a quiz compared to those who don’t.
-
Break down results by quiz. If you run multiple quizzes, use Explorations to see which quiz names bring in the most purchases and revenue.
-
Build funnels. Visualize the full journey from quiz_started → results_page_viewed → product_added_to_cart → purchase, and spot where users drop off.
-
Analyze user paths. Discover what customers do after completing your quiz—do they view recommended products, add to cart, or head straight to checkout?
-
Create segments and audiences. Build an audience of “Quiz Users” for ongoing analysis or remarketing in Google Ads.
Refer to the Google Analytics documentation for more information on how to use GA4 Explorations.
Example 1: Most Clicked Choices¶
You can build an exploration to see which choices are most popular.
- Go to
Explore → + → Free form
. -
Add Dimensions and Metrics. In the Variables panel:
Dimensions
→+
→ add:Event name
Metrics
→+
→ add:Event count
-
Configure the Tab Settings. In the Tab Settings panel:
Segments
: selectAll Users
(or addQuiz Users
if you want to limit results to quiz participants)Rows
:Event name
Columns
: leave emptyValues
:Event count
Filters
:Event name contains block_answered
Visualization
:Table
(or Bar chart)Date range
: e.g.Last 28 days
You’ll now see a table showing which quiz answers (
block_answered
events) were clicked most often, giving you a clear view of the most popular choices. -
Save and Reuse. Rename your exploration (e.g.
Most Clicked Choices
). Use the star or share option so teammates can find it easily.
Example 2: Track Revenue from Quizzes¶
You can measure how much revenue your quiz generates directly in GA4 using an Exploration. This walkthrough shows how to build a Free form table comparing quiz users with all users.
- Go to
Explore → + → Free form
. -
Create the “Quiz Users” segment. In the Variables panel, under Segments, click +. Choose User segment. Set the condition: Include users where
Event name
→contains
→quiz_started
(or usematches regex
→^quiz_started_.*$
). Name itQuiz Users
→Save and apply
. Also add the defaultAll Users
segment for comparison. -
Add Dimensions and Metrics. In the Variables panel:
Dimensions
→+
→ add:Event name
Metrics
→+
→ add:Event count
,Purchases
,Total revenue
-
Configure the Tab Settings. In the Tab Settings panel:
-
Segments
: selectAll Users
andQuiz Users
-
Rows
:Event name
-
Columns
: leave empty, or set toSegment
for side-by-side comparison -
Values
:Event count
,Purchases
,Total revenue
-
Filters
:Event name contains quiz_started
-
Visualization
:Table
(or Bar chart) -
Date range
: e.g.Last 28 days
You’ll now see a table showing revenue and purchases from quiz users (people who triggered a quiz_started event) compared to all users.
-
-
Save and Reuse. Rename your exploration (e.g.
Quiz Revenue
). Use the star or share option so teammates can find it easily.Optional Variations
-
Compare specific quizzes: Use
Filters
→Event name
contains your quiz ID/text
(e.g.,quiz_started_skincare_quiz_usa
). -
If your quiz is on a dedicated page: Create a Session/User segment: include users where Page location contains
/pages/skin-quiz
. This shows revenue for anyone visiting that quiz page.
-
Google Analytics 4 (GA4) offers Explorations, a powerful tool for digging deeper into your quiz data. Standard reports show you high-level trends, but Explorations let you ask more specific questions about how customers interact with your quiz and how it impacts revenue.
With Explorations, you can:
-
Compare quiz users vs. all users. See how much revenue is generated by customers who start a quiz compared to those who don’t.
-
Break down results by quiz. If you run multiple quizzes, use Explorations to see which quiz names bring in the most purchases and revenue.
-
Build funnels. Visualize the full journey from quiz_started → results_page_viewed → product_added_to_cart → purchase, and spot where users drop off.
-
Analyze user paths. Discover what customers do after completing your quiz—do they view recommended products, add to cart, or head straight to checkout?
-
Create segments and audiences. Build an audience of “Quiz Users” for ongoing analysis or remarketing in Google Ads.
Refer to the Google Analytics documentation for more information on how to use GA4 Explorations.
Google Analytics 4 (GA4) offers Explorations, a powerful tool for digging deeper into your quiz data. Standard reports show you high-level trends, but Explorations let you ask more specific questions about how customers interact with your quiz and how it impacts revenue.
With Explorations, you can:
-
Compare quiz users vs. all users. See how much revenue is generated by customers who start a quiz compared to those who don’t.
-
Break down results by quiz. If you run multiple quizzes, use Explorations to see which quiz names bring in the most purchases and revenue.
-
Build funnels. Visualize the full journey from quiz_started → results_page_viewed → product_added_to_cart → purchase, and spot where users drop off.
-
Analyze user paths. Discover what customers do after completing your quiz—do they view recommended products, add to cart, or head straight to checkout?
-
Create segments and audiences. Build an audience of “Quiz Users” for ongoing analysis or remarketing in Google Ads.
Refer to the Google Analytics documentation for more information on how to use GA4 Explorations.
Google Analytics 4 (GA4) offers Explorations, a powerful tool for digging deeper into your quiz data. Standard reports show you high-level trends, but Explorations let you ask more specific questions about how customers interact with your quiz and how it impacts revenue.
With Explorations, you can:
-
Compare quiz users vs. all users. See how much revenue is generated by customers who start a quiz compared to those who don’t.
-
Break down results by quiz. If you run multiple quizzes, use Explorations to see which quiz names bring in the most purchases and revenue.
-
Build funnels. Visualize the full journey from quiz_started → results_page_viewed → product_added_to_cart → purchase, and spot where users drop off.
-
Analyze user paths. Discover what customers do after completing your quiz—do they view recommended products, add to cart, or head straight to checkout?
-
Create segments and audiences. Build an audience of “Quiz Users” for ongoing analysis or remarketing in Google Ads.
Refer to the Google Analytics documentation for more information on how to use GA4 Explorations.
Google Analytics 4 (GA4) offers Explorations, a powerful tool for digging deeper into your quiz data. Standard reports show you high-level trends, but Explorations let you ask more specific questions about how customers interact with your quiz and how it impacts revenue.
With Explorations, you can:
-
Compare quiz users vs. all users. See how much revenue is generated by customers who start a quiz compared to those who don’t.
-
Break down results by quiz. If you run multiple quizzes, use Explorations to see which quiz names bring in the most purchases and revenue.
-
Build funnels. Visualize the full journey from quiz_started → results_page_viewed → product_added_to_cart → purchase, and spot where users drop off.
-
Analyze user paths. Discover what customers do after completing your quiz—do they view recommended products, add to cart, or head straight to checkout?
-
Create segments and audiences. Build an audience of “Quiz Users” for ongoing analysis or remarketing in Google Ads.
Refer to the Google Analytics documentation for more information on how to use GA4 Explorations.
This article explains how to connect the quiz to Google Analytics and track quiz performance in GA4.