Google Analytics 4 Event Tracking Tutorial(2022) | BCS

Google Analytics 4 Event Tracking Tutorial(2022)

Google Analytics Haran Huang 2 years ago (2020-10-09) 2141 Views 0 Comments

Google Analytics 4 is event-driven. All data and behaviors are tracked through events. The default events are divided into 4 type:

Automatically Collected Events

Automatically Collected Events (aka Automatic Events) are automatically collected by the system without additional settings, as long as you have the  gtag.js installed, and basic user interactions with your website, for example: page_view.

Automatically Collected Events include:

  • first_visit: the first time a user visits a website 
  • page_view:each time the page loads or the browser history state is changed by the active site
  • session_start:when a user engages the website, A session ID and session number are generated automatically with each session and associated with each event in the session
  • user_engagement:when the app is in the foreground or webpage is in focus for at least one second

 

Automatically Collected Events cannot be disabled, Automatically Collected Events do not count towards the 500 event limit.

Learn More:Automatically Collected Events in Google Analytics 4

Enhanced  Measurement Events

Enhanced Measurement Events are built-in events, just need to be enabled in the web data stream, No code changes are required, and Google Analytics tag starts sending events right away.

Enhanced Measurement Events include 6 type :

Actions

Enhanced Measurement Events

Triggered…

Parameters

Page views

page_view   

each time the page loads or the browser history state is changed by the active site
This event is collected automatically. You cannot turn off collection.
page_location page_referrer

Scrolls

scroll

the first time a user reaches the bottom of each page (i.e., when a 90% vertical depth becomes visible) No parameters.

Outbound clicks

click

each time a user clicks a link that leads away from the current domain
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.
link_classes
link_domain
link_id
link_url
outbound (boolean)

Site search

view_search_results

each time a user performs a site search, indicated by the presence of a URL query parameter
By default, the event is triggered based on the presence of one of the following 5 parameters(q、s、search、query、keyword) in the URL,you can customize up to 10 parameters
search_term, optionally ‘q_<additional key=””>’ (where <additional key=””> matches an additional query parameter you specify to be collected under advanced settings)

Video engagement                                                              

video_start

video_progress

video_complete                                                                                                                                        

For embedded videos that have JS API support enabled, the following events are triggered:

  • video_start: when the video starts playing
  • video_progress: when the video progresses past 10%, 25%, 50%, and 75% duration time
  • video_complete :when the video ends
video_current_time
video_duration
video_percent
video_provider
video_title
video_url
visible (boolean)

File downloads

file_download

Triggered when the user downloads the following file: pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma file_extension
file_name
link_classes
link_domain
link_id
link_text
link_url

Learn More : Enhanced  Measurement Events in Google Analytics 4

Recommended Events

Custom Events


If you don't understand, You can leave a comment below or email me ([email protected]).
Like (1)
Post my comment
Cancel comment
Expression Texture Bold Strikethrough Center Italic Sign in

Hi, you need to fill in your nickname and email!

  • Nickname (required)
  • Email (required)
  • Website