Google Analytics
Learn how you can connect Google Analytics to Quiz Kit to track different events.
You can add Google Analytics events to track different actions taken in your quiz. The events that you can track are: quiz started, question answered, quiz completed, product added to cart, and customer subscribed.
In this section
Before you begin
Before you begin, you need to ensure that you've enabled Google Analytics 4 for your store. You can learn more about how to get set up with Google Analytics 4 on Shopify.
Connecting Quiz Kit to Google Analytics
Steps:
From the Quiz Kit dashboard, click Integrations.
On the Analytics & Tracking tab, go to Google Analytics.
Click Enable.
Creating custom events in Quiz Kit
Steps:
From the quiz builder, click Settings.
Click Tracking.
Click the Google Analytics tab, and enter any custom event names for tracking information that you want. For example, for the quiz started event, you can write
quiz-started
.Click Save.
Adding custom tags to Google Tag Manager
Part 1: Create a trigger
The first step in creating and tracking an event is to create the trigger in Google Tag Manager (GTM).
Steps:
From your GTM account, click Triggers.
Click New.
Give your trigger a name so you can identify it later, for example,
Quiz started
.Click under Trigger configuration to open the side panel.
Click Custom event.
Under Event name, copy and paste the event name that you created in your Quiz Kit app. In this example, the event name is
quiz-started
.Click Save.
Part 2: Create a custom tag
Next, you need to create a custom tag that references the trigger that you created in the previous section.
Steps:
From your GTM account, click Tags.
Click New.
Give your tag a name so you can identify it later, for example,
Quiz started
.Click under Tag configuration to open the side panel.
Click Google Analytics, then click Google Analytics 4.
In the Measurement ID field, enter your ID.
Under Event name, copy and paste the event name that you created in your Quiz Kit app. In this example, the event name is
quiz-started
.Click under Triggers and select the trigger that you created in the last section.
Click Save.
This event is now being tracked.
Repeat the steps in Part 1 and 2 for each event that you want Google Analytics to track.

Last updated
Was this helpful?