Sub topic 4
What GA4 already collects for you
This chapter covers the events GA4 sends without any custom code, so you can avoid rebuilding them. It assumes you have a GA4 property with a web data stream, can read a JavaScript object, and know what a GTM container, tag, and trigger are.
Two layers of built-in events
GA4 collects built-in events in two layers:
- Automatically collected events fire whenever the GA4 tag is on the page. You cannot turn them off in the interface.
- Enhanced measurement events are a bundle of interaction events that you switch on or off per web data stream. New web streams have them on by default.
Both layers are separate from recommended events and custom events, which you implement yourself. Check the built-in layers first, because a duplicate of a built-in event inflates your counts.
Automatically collected events on the web
Three events matter most for a website. The tag sends them with no configuration.
| Event | When it fires | Why it exists |
|---|---|---|
| `first_visit` | The first time a browser visits the site, when no earlier GA cookie exists for the stream | Counts new users |
| `session_start` | When a new session begins | Counts sessions |
| `user_engagement` | When the page has been in the foreground and the user leaves or the page changes | Carries engagement time |
page_view is also sent on page load. It is listed with enhanced measurement, but a standard tag install sends it from the config call, so you get it even if you never touch the other toggles.
These events are the basis for core metrics. Users, sessions, and engagement time all come from them. If you send your own event called session_start, you corrupt those metrics. GA4 treats first_visit, session_start, and user_engagement as reserved names, so do not reuse them.
Parameters that arrive with every event
Each event also carries parameters that you never set. Common ones include page_location, page_referrer, page_title, language, screen_resolution, engagement_time_msec, ga_session_id, and ga_session_number. This means your own events do not need to repeat the page URL or title. A custom event sent from a pricing page already knows it came from the pricing page.
Enhanced measurement events
Enhanced measurement turns common interactions into events. You manage it in Admin > Data streams > your web stream > Enhanced measurement. Each option has its own toggle.
| Toggle | Event name | Notable parameters |
|---|---|---|
| Page views | `page_view` | `page_location`, `page_referrer`, `page_title` |
| Scrolls | `scroll` | `percent_scrolled` (value 90) |
| Outbound clicks | `click` | `link_url`, `link_domain`, `link_id`, `link_classes`, `outbound` |
| Site search | `view_search_results` | `search_term` |
| Video engagement | `video_start`, `video_progress`, `video_complete` | `video_title`, `video_url`, `video_percent`, `video_provider` |
| File downloads | `file_download` | `file_name`, `file_extension`, `link_url`, `link_text` |
| Form interactions | `form_start`, `form_submit` | `form_id`, `form_name`, `form_destination` |
How each one behaves
- Scrolls. The
scrollevent fires once per page, the first time a visitor reaches 90% of the page height. It does not report 25% or 50%. If you need those depths, you must build custom events yourself. - Outbound clicks. The
clickevent fires only when the link leads away from your domain, and it setsoutboundto true. Clicks on internal links do not produce it. Use your own event if you need internal link tracking. - Site search. GA4 watches for a query parameter in the URL. By default it looks for
q,s,search,query, andkeyword. If your site uses?term=boots, addtermin the toggle's advanced settings. Without that change the event never fires. - Video engagement. It works for embedded YouTube players that have the JavaScript API enabled (
enablejsapi=1in the embed URL).video_progressfires at 10%, 25%, 50%, and 75%. Self-hosted video and other players are not covered. - File downloads. The event fires when a link points to a common file extension such as
pdf,doc,xls,zip, ormp3. A download triggered by JavaScript, with no link click, is not detected. - Form interactions.
form_startfires on the first interaction with a form field.form_submitfires when a form is submitted. Forms that submit through JavaScript without a standard submit event can be missed, and some are counted incorrectly.
Seeing the defaults in a standard install
A standard gtag.js install is enough to produce all of the events above. Nothing else is needed.
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>On the first load this sends first_visit, session_start, and page_view. user_engagement follows when the visit ends or the page changes. If enhanced measurement is on, scroll, outbound click, download, and the other events follow as the visitor interacts.
Controlling the defaults
You can adjust the defaults in three ways.
- Toggle enhanced measurement options. Turn off any option you do not trust, or any option you replace with your own event.
- Suppress the automatic page view. This is common in single-page applications where you send page views from your router.
- Modify or create events in the interface. Event rules under Admin > Data streams > Modify events can rename an event or change its parameters after collection.
To suppress the automatic page view with gtag.js, pass send_page_view: false and send page_view yourself.
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX', { send_page_view: false });
// Call this from your router after each route change.
function trackRoute(path, title) {
gtag('event', 'page_view', {
page_location: window.location.origin + path,
page_title: title
});
}
trackRoute(window.location.pathname, document.title);
</script>In Google Tag Manager the equivalent setting is on the Google tag, where you can switch off sending a page view when it loads. A tag that does this and an enhanced measurement page view toggle that is still on can send two page views for one load. Check one configuration at a time.
Common errors with built-in events
- Double counting. You add a custom
file_downloadevent in GTM while the enhanced measurement download toggle is on. Each download is counted twice. Turn off the toggle, or do not build the custom event. - Reusing built-in names. Sending your own
click,scroll, orpage_viewwith different parameters mixes two meanings in one event. Pick a different name, for examplecta_click. - Assuming a toggle works everywhere. Site search stays empty because the query parameter is not in the default list.
- Missing parameters in reports. Enhanced measurement parameters such as
file_extensiondo not appear as dimensions until you register custom definitions for them. The event shows up in reports, but the parameter does not. A later chapter covers registering them. Some parameters, likelink_url,file_name, andvideo_title, are already available as built-in dimensions, so check the dimension list before you register anything. - Treating
user_engagementas a click. It signals foreground time, not interaction. Do not use it to measure engagement beyond time.
What the defaults do not cover
The built-in layers describe generic behavior: arriving, scrolling, clicking out, downloading, and submitting. They do not know what a purchase, a login, or a plan selection is on your site. Those meanings come from recommended events when a predefined name fits, and from custom events when none does. A good tracking plan lists the built-in events you are keeping and only then adds the events you must write yourself.
Exercise
Your site has an enhanced measurement file download toggle turned on. A teammate adds a GTM tag that sends a custom pdf_download event on every PDF link click. Reports now show two events for each PDF download. What are two ways to fix this, and what is a risk of each?
Show answer
Fix 1: turn off the file downloads toggle in the web stream's enhanced measurement settings. The risk is that you also lose downloads of other file types (such as zip or xls) unless your GTM trigger covers them. Fix 2: delete the custom tag and keep the built-in file_download event. The risk is that you lose control over the event name and cannot add custom parameters unless you modify the event with a rule or register the existing parameters. Either way, keep only one source of truth for the same interaction.
Exercise
A visitor lands on a page with the standard gtag.js snippet, scrolls to 50% of the page, then clicks a link to another website. Which built-in events fire, assuming enhanced measurement is on with default settings?
Show answer
first_visit (if it is their first visit), session_start, and page_view fire on load. The scroll to 50% fires nothing, because scroll fires only at 90%. The outbound link fires click with outbound set to true. user_engagement fires when the visitor leaves the page.