Sub topic 2
Four kinds of events
This chapter assumes you have a GA4 property with a web data stream and understand basic page views and sessions. In GA4, an event is a record of something that happened, such as a page view, file download, or newsletter signup. Events are the basic units of measurement in GA4.
GA4 groups events into four practical categories:
| Event type | How it is collected | Example |
|---|---|---|
| Automatically collected | GA4 collects it without extra setup | `session_start` |
| Enhanced measurement | A web stream collects it when the feature is enabled | `file_download` |
| Recommended | You implement a Google-defined name and parameter set | `purchase` |
| Custom | You define the event name and parameters yourself | `newsletter_signup` |
Automatically collected events
Automatically collected events are generated by GA4 when its standard collection is active. You do not add event code for them.
Common examples include:
first_visit, when a user visits your website for the first time on a browsersession_start, when a new session beginsuser_engagement, when GA4 records active engagementpage_view, when a page loads
These events provide the foundation for reports about users, sessions, pages, and engagement. You generally should not create another event with the same purpose. For example, adding a second manual page-view event can inflate page-view counts.
Enhanced measurement events
Enhanced measurement is a group of optional automatic events for web streams. You enable them in the data stream settings rather than writing JavaScript for every event.
Depending on the enabled settings, GA4 can collect events such as:
scroll, usually when a user reaches approximately 90 percent of a pageclick, for outbound link clicksview_search_results, when a site-search query appears in the URLvideo_start,video_progress, andvideo_completefor supported embedded videosfile_download, when a user downloads a recognized file type
Open the web stream in Admin > Data streams to review these switches. Enhanced measurement is convenient, but check that the default rules match your site. A download link that does not use a recognized file extension may not produce file_download.
Recommended events
Recommended events use names and parameters documented by Google for common business actions. Examples include login, sign_up, search, add_to_cart, and purchase.
Use a recommended event when one exists. Standard names make reports, audiences, and integrations easier to understand. Parameters also carry important detail. A purchase event, for example, needs purchase-related values such as transaction details and items to support useful commerce reporting.
A recommended event is still something you usually implement. GA4 does not know that a user completed your signup process unless your site sends the event.
Custom events
A custom event uses an event name that you define because no recommended event fits the action. For example:
gtag('event', 'newsletter_signup', {
placement: 'footer'
});The event name describes the action, while placement is an event parameter, which is additional information attached to that event. Parameters help explain how, where, or with which item an action occurred.
Use consistent lowercase names and avoid creating several names for the same action, such as signup, sign_up_form, and newsletter_signup for one process. Also remember that sending a parameter does not automatically make it available as a report column. You may need to register it as a custom dimension.
Exercise
A website sends file_download manually, but enhanced measurement is also enabled. What should you check first?
Show answer
Check whether both methods record the same download. If they do, remove one method or otherwise prevent duplicate events.