Setting up events for Google Analytics 4 (GA4) via GTAG.js

Serhii Uhnivenko

Last Update 2 maanden geleden

Preliminary required actions

Create a GA4 account and stream for your website (if it hasn’t been done) | official instructions

Add the GTAG script into EasyQuizy

1. Go to EasyQuizy admin panel ⇒ Quizzes ⇒ Your quiz ⇒ Integrations and scripts ⇒ Custom code, and paste the GTAG script to the container (inside <head>/<head>):

2. Save the quiz.

From now on, all events will be transmitted in GA4 automatically:

  • EQ_quiz_start — starting the quiz journey
  • EQ_quiz_finish  finish the quiz successfully
  • EQ_form_success  successful feedback form
  • EQ_step-#  passed steps of the quiz

Creation Key Events (conversions) in GA4

You can detect all events in the GA4 Realtime report right after adding the GTAG script:

When the event data is available, go to “Admin” ⇒ “Data display” ⇒ “Events” and switch on those events which you want to track as Key Events (conversions).

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us