Google Analytics 4 Event Tracking
Google Analytics 4 Event Tracking
Jellyfish Training
2023
Webinar Etiquette
We’re recording
Manager
GA4 EVENT TRACKING
Upcoming Sessions
Session Breakdown
10:05am What are events? 10:30am Creating Events in the User Interface
Google Analytics measures user interactions with your website or app using
events.
Events are any user action on your site/app which is tracked in GA4.
These often include link clicks, downloads, video plays, or form submissions, and
more, that we will analyse in GA.
Events allow you to understand how users interact with your website or app and
what actions they take.
Source: Google
We’ll look at how they are configured, and how they can be
used in the GA4 interface
E.g. Example below shows pages on my site ranked by most email_click events
Rather than have Event Categories, Actions and Labels all events can have up to
50 text and 50 numeric parameters associated with them for contextual
information. The below is sample data only. Your tracking may not look like this.
Custom parameters
Time to Contact
Event name Page title Name Location Duration Format
complete Preference
page_view About Us
Each event fires with up to 4 parameters: Events are fundamentally just counters and display as
such in event reporting.
event_category - group of events
Example: Example:
first_visit the first time a user visits a website or launches an Android instant app with Analytics enabled
session_start when a user engages the app or website. A session ID and session number are generated automatically
with each session and associated with each event in the session. Learn more
page_view each time the page loads or the browser history state is changed by the active site page_location (page URL),
page_referrer (previous page URL),
engagement_time_msec
user_engagement when the app is in the foreground or webpage is in focus for at least one second. Learn more engagement_time_msec
■ Some of the events may not work on your website, and may require a
custom solution. E.g.
scroll the first time a user reaches the bottom of each page (i.e., when a 90% vertical depth becomes visible)
click each time a user clicks a link that leads away from the current domain. link_classes, link_domain, link_id,
link_url, outbound (boolean)
By default, outbound click events will occur for all links leading away from the current domain. Links to
domains configured for cross-domain measurement will not trigger outbound click events.
view_search_results each time a user is presented with a search results page, as indicated by the presence of a URL query page_location (page URL),
parameter. By default, the event is triggered based on the presence of one of the following 5 query page_referrer (previous page URL),
parameters in the URL: engagement_time_msec
● q
● s
● search
● query
● keyword
You can optionally configure this event to look for other URL query parameters. The search_term
parameter populates the Search term dimension.
video_start For embedded videos that have JS API support enabled, the following events are triggered: video_current_time, video_duration,
video_percent, video_provider,
video_start: when the video starts playing video_title, video_url, visible
(boolean)
video_progress video_progress: when the video progresses past 10%, 25%, 50%, and 75% duration time
video_complete
file_download when a user clicks a link leading to a file (with a common file extension) of the following types: file_extension, file_name,
link_classes, link_domain, link_id,
● document link_text, link_url
● text
● executable
● presentation
● compressed file
● video
● audio
form_start 'form_start': the first time a user interacts with a form in a session form_start
'form_submit': when the user submits a form ● form_id: HTML id attribute of the <form> DOM
element
form_submit You can use these two events to see how many users started to fill out a form and ● form_name: HTML name attribute of the <form>
compare the information to users who submitted the form. DOM element
● form_destination: URL to which the form is being
Note: You can only use the parameters in your reports if you create Custom
submitted
Dimensions for them.
form_submit
Recommended events
Custom events
You might notice these only show the event name - what if we need to bring in a
parameter too?
We can filter on event name or conversion name, but we can’t bring in event
parameters here.
E.g. I can filter on event name = file_download, but I am
unable to bring in event parameters of file_extension,
→ file_name, etc. If I have multiple files for download on
one page, I can’t differentiate between the individual
file.
These are again typically configured in
GTM.
Be aware:
■ Custom dimensions are not retroactive - they will only start populating data from the day they
were created.
■ You have a limited number of event scoped Custom Dimension slots - use them wisely (50 for
free tier, 125 for 360 properties, more info here).
E.g. Below I have set the dimension as my new Custom Dimension, file_name, and
filtered descending on file_downlod.
What if I want to take an existing event, and make a refined variation of it for
ease of reporting.
E.g. A dedicated event for specific file downloads (file_name parameter contains
“annual_report”) = annual_report_download event
Once data starts collecting, the event will appear in the list
on this page
Once it appears here, I can toggle the ‘Mark as conversion’ option on if I wish.
Use the exact same name and hit save. Your conversion is ready to collect data, and
will be available in reports as data populates.
Creating events in the user interface assumes the event data is already populating, and
you just want to create a new, refined version of the existing event for ease of reporting.
E.g. I’m already tracking file downloads (with file name as an event parameter), and just
want to create a dedicated event for one specific important file, so I can more easily
report on it.
If the base event data you need to refine isn’t populating in GA4, you will need to set up
this tracking first (e.g. via GTM).
E.g. I want to create an specific event when someone clicks a button with the word “login”,
but if there is no button tracking set up on my site, I need to do this first. It will likely
require developer effort.
© 2023 Jellyfish Training
How do I know my
new event is
working?
© 2023 Jellyfish Training
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . GA4 EVENT TRACKING
In another tab…
Refer back to our Deep Dive into GA4 Reporting & Visualisations session for
exercises where we use the Explore workspace to review event name + parameter
values.
The Exploration workspace is can be useful for checking and validating you are using
the correct parameter/event values. Note that to use the parameter in the Exploration
workspace, you will need to have created it as a Custom Dimension, and given it
time to populate data first.
E.g. Link url parameter values starting with mailto: for the
click event
I can use this to validate that I am using the correct values. I can see
here that by filtering on event name exactly matches click, and link url
begins with mailto: it is giving me the intended result.
Option 1. Requires
installation of browser
extension.
■ If you are using Google Tag Manager (GTM) on your site, this comes with a
preview mode that you can use to test and debug events, without having to
install a browser extension.
■ Using GTM also has its own security considerations and learning curve. We
have a GTM overview session coming up on 28th July.
■ What device type was being used when the event fired
■ And more..
Refer back to Setting up Your report Library deck, and for more examples of campaign
tracking, come to the Campaign (UTM) Tracking session on 18th August.
Upcoming Sessions
Training Survey
Thanks
I hope you enjoyed today’s training!
NEWS & INSIGHTS TRAINING LEADERSHIP
All the latest news, opinions Professional digital classroom Inspiration, imagination and
and reactions from Jellyfish and online training courses insight from industry leaders