How to Track Quiz Performance with 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.
Connect Quiz to Google Analytics¶
You can add your Google Analytics Tracking Code to your quiz to understand how your customers are interacting with your quiz, identify bottlenecks, and reduce the drop-off rate.
- Head to your quiz and click on the Connect tab.
- Click on the
connect
button in the Google Analytics section and paste your Google Analytics Tracking Code (G-xxxxx for GA4).
How to Find Your GA4 Tracking Code¶
Don't know how to find your GA tracking code? Check this link.
- Open your GA4 account and navigate to
Settings > Data Streams
. - Select or set up a new data stream for your website.
- Open the stream and copy the Measurement ID.
- Copy the Measurement ID into the app’s
Connect > Google Analytics
section and publish the changes.
Track Customer Behavior (Events)¶
You’ll be able to see quiz usage and customer behavior in your Google Analytics dashboard, under Reports > Engagement > Events
.
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 Action | Event Category | Event Label |
---|---|---|---|
User starts a quiz (clicks on the button of the first question or the welcome question) | view | start | quiz_name |
User views a question | view | question | question_title |
User clicks on a choice or selects an option from a dropdown | click | choice | choice_text |
User responds to the email question | submit | quiz_name | |
User responds to the phone question | submit | phone | quiz_name |
User gets to results page | view | results | quiz_name |
A certain product is recommended in the results page | recommendation | product | product_name |
Customer clicks on product (view product button or image) | view | product | product_name |
Customer adds a product to cart (via "add to cart" or "add all to cart" buttons) | click | addCart | product_name |
Customer proceeds to cart/checkout | click | checkoutButton | quiz_name |
Customer retakes quiz | click | retakeQuiz | quiz_name |
Track Quiz Revenue¶
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.
Quiz Exploration (BETA)¶
You can build your own exploration of quiz revenue in your Google Analytics 4 account.
The exploration enables you to see how much revenue the quizzes have generated and attribute the original source/medium of the traffic.
Guidelines:
- Filter by the event name
recommendation
to isolate quiz-related data. Session source/medium
shows where the traffic originated.Sessions
count how many times the quiz was engaged with.Total Revenue
displays earnings tied to the quiz.
Warning
Some users have encountered issues with explorations not showing revenue data due to GA4 limitations.
Exclude the Quiz as Source in Google Analytics¶
We strongly recommend not excluding your quiz as a traffic source, but here’s how to do it if you need to.
- Exclude the
admin.revenuehunt.com
domain in Google Analytics. More info on how to exclude referral traffic here. - Deactivate the
Set revenuehunt/quiz as UTM source/medium
toggle in the Quiz Settings.
Why Returning Users from Excluded Domains Still Appear in Your Reports?
Old traffic might appear as coming from the excluded domain. This issue results from the default campaign timeout of 6 months. For more information, visit Google Analytics support.
Add Custom Trackers¶
For an alternative approach to tracking user interactions, consider implementing custom JavaScript to measure specific events on your site. By incorporating our callback function, you have the capability to manually trigger or log events based on user actions.
To deploy this method, you can insert a script within the theme of your store's page, especially where a quiz is featured. Follow these steps:
- Understand the Callback Function: Visit the FAQ page on custom integrations to learn how our callback function operates and how it can be utilized for tracking custom events.
-
Embed the Custom Script: Insert the following script into the theme of your store’s page where the quiz or the event you want to track is located (load it sitewide and put it into the theme.liquid):
-
Customize Your Event Tracking: In the script, replace the values with the appropriate event name, label, and value that you wish to track. This customization allows you to monitor specific user actions on your website.
- Monitor and Adjust: After the script is active and events are being tracked, regularly monitor the data to ensure everything is working as intended. Be prepared to make adjustments to the script or event definitions as needed.