Skip to content

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.

  1. Head to your quiz and click on the Connect tab.
  2. 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.

  1. Open your GA4 account and navigate to Settings > Data Streams.
  2. Select or set up a new data stream for your website.
  3. Open the stream and copy the Measurement ID.
  4. 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.

how to ga 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 email 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.

how to ga revenue2

Add a Source column next to the default channel grouping and look for the rows which include the revenuehunt source.

how to ga events

Quiz Exploration (BETA)

You can build your own exploration of quiz revenue in your Google Analytics 4 account.

how to ga exploration

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.

  1. Exclude the admin.revenuehunt.com domain in Google Analytics. More info on how to exclude referral traffic here.
  2. 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:

  1. 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.
  2. 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:

    <script>
    function prqQuizCallback(quizResponse){
        gtag('event', 'your_event_name', {
        'event_category': 'quiz',
        'event_label': 'specific_label',
        'value': quizResponse.someValue
        });
    }
    </script>
    

  3. 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.

  4. 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.