Google Analytics 4 (GA4) rebuilt the platform from the ground up with a new central focus on events, enhancing users’ ability to customize tracking for specific actions across websites and apps.
To set up GA4 properly, you should think through the events that make sense to track for your site.
This article covers the events you can track by default and how to set up custom events, along with suggested use cases for each.
Out of the box, GA4 includes events for several categories that can be automatically collected, including the following as of the time of this article.
The page_view event fires whenever a page is loaded or the browser history state changes. This can’t be disabled.
The scroll event fires when a user scrolls 90% of the way through a page.
The click event only fires for clicks leading to separate domains.
This tracks internal search activity if you have the option included on your site.
The view_search_results event fires every time someone completes a search.
The search_term parameter will include the actual term that was searched.
This fires form_start at the start of an interaction with a form (i.e., the user clicks inside a text field) and when the form is submitted (form_submit).
You can fire additional parameters to show form_id, form_name, and form_destination to delineate interactions with specific forms.
Video engagement tracks starts (video_start), completions (video_complete), and watch duration (video_progress) for embedded videos.
Parameters within the events can indicate the specific percentage or timestamp within the video when an action occurs and the video title and URL, regardless of its visibility on the page.
This fires the file_download event for clicks leading to several common file formats, such as text documents, spreadsheets, presentations, executable files, compressed files, video, and audio
Note that, apart from page views, you need to manually enable these events via Enhanced Event Measurement for them to fire.
To do so, from within the Admin section of your GA4 account, go to Data Streams under your GA4 property and select the stream you’re working from.
From here, you’ll see the Enhanced measurement option near the top.
Toggle the switch on and select the gear to see the options for measuring specific events. You can then toggle on all the events you’d like to include.
Of course, these built-in events have limitations and barely scratch the surface of GA4’s capabilities. Before discussing other uses for events, let’s cover how you can create new events.
From within the Admin section for your GA4 property, navigate to Events. You'll see a Create event button, which you can click to begin the process.
Next, you'll see a Create event screen from which you can click the Create button.
From here, you can add the event name and customize any parameters to pass additional information through to Google Analytics.
If you want to use an event as a conversion, you'll see a Mark as conversion option next to existing events listed in the Events section.
Toggle this to include the event in the Conversions report for the future and lump it together with metrics such as Conversion and Conversion Rate when creating custom explorations.
Let's look at a few practical uses for custom events on your website or app.
While GA4 records events for outbound clicks by default, internal clicks leading to the same domain or domains included in cross-domain measurement are not tracked.
However, you may want to track these clicks to answer questions such as:
Using Google Tag Manager, you can set up an event to target a click on a specific element within your site.
While the exact approach may vary depending on the site, you could set up a trigger based on an HTML ID, a link URL, object text, or other criteria to ensure you're picking up on the correct click.
If applicable to your site, you can fire a sign_up event when users register or login when current users log into their accounts.
This tracking could help answer questions such as:
Beyond setting up these events, explore setting up user ID tracking, in which you assign a unique ID to each individual and can connect future sessions to the same user when they log in down the road.
For ecommerce sites, be sure to incorporate tracking for cart, checkout, and purchase-related activities.
GA4 recommends the following events which are relevant for common ecommerce actions you'd want to record:
GA4 can track several events related to app interactions, such as when users:
These examples and others are automatically collected, but additional recommended events can be included, depending on the type of app.
For instance, a game may include tutorials to teach new users how to play.
You can fire events for people working their way through the tutorial, showing how many individuals start the process and how many finish without dropping out.
Other in-game events can track starting/ending levels, spending virtual currency, unlocking achievements, and posting scores.
This is just an initial list of potential events to create for your site or app, but the possibilities are endless for tracking your particular setup.
Consider the user actions crucial to your business or clients and how you can correlate events with these activities.
The sooner you gather historical events, the more robust data you'll have for future analysis.
The post Event tracking in Google Analytics 4: What marketers need to know appeared first on Search Engine Land.
from Search Engine Land https://searchengineland.com/event-tracking-google-analytics-4-395023
via free Seo Tools