Setting up events for Google Tag Manager (GTM)
Serhii Uhnivenko
Last Update hace 2 meses
Install the Google Tag Manager container for your quiz
2. Copy the GTM code from the account:


4. Save the quiz.
Eventually, using the debug mode in GTM, all events will be displayed there:

Setting up triggers and variables in Google Tag Manager
Triggers in Google Tag Manager are needed to track events in Google Analytics 4, Google Ads, Meta Ads, and other advertising systems.
Create Triggers for each event
The following GTM events will be available after the container implementation:
- EasyQuizy_quiz_start — is being activated on the first question of the quiz after clicking on a button
- EasyQuizy_quiz_finish — is being activated after the successful end of the quiz
- EaysQuizy_form_success — is being activated after the successful feedback form
- EasyQuizy_step — event for each successful passing of a quiz step
Firstly, create triggers for events such as:
- EasyQuizy_quiz_start
- EasyQuizy_quiz_finish
- EaysQuizy_form_success
1. Go to “Triggers” in GTM and create a new trigger with “Custom event” type
2. Event name: paste in the needed event name
3. Trigger name: any value
4. Repeat it for all three events:

Create a trigger for the event EasyQuizy_step (use regex matching):

Eventually, there must be such triggers:

Create Variables
1. Go to “Variables” in GTM and activate the standard variable “Event”:
Step 1.

Step 2.

2. Create a new User-Defined Variable (type: Data Layer Variable, Data Layer Variable Name: label):
Step 1.

Step 2.

Step 3.

Eventually, this variable allows you to track the names of quiz steps for EasyQuizy_step event in Google Analytics 4, etc.