Google Analytics 4: event-based measurement
The official reference is the Google guide for GA4.
GA4 measures events, not only pages
Google Analytics 4 describes what people do on the site or in the app as a sequence of events, each with parameters. A page view is an event. A click on “add to cart” is an event. A purchase is an event with a value, a currency and a product list. The old model centered on the session and the page view is no longer enough to explain a funnel.
This change is useful only if the events are designed. A stream full of automatic hits and short on stable names produces noisy reports: lots of numbers, few decisions. A well-built configuration ties every event to a business question. How many people see the product? How many put it in the cart? How many reach payment? How many complete the order, and at what value?
GA4 does not replace Google Ads and it does not replace the DataLayer. It is the place where events, once they have been collected cleanly, become something you can explore: paths, channel comparisons, audiences. The quality of those views depends on what the site declares, not on what the platform guesses.
Google tag, enhanced measurement and GTM
The Google tag connects the site to the stream of the GA4 property. It can be installed directly on the page or through Google Tag Manager. On a project with several tools — Ads, remarketing, custom events — GTM is almost always the more maintainable choice: one container, preview, versions, consent.
The stream’s enhanced measurement can record some interactions on its own, such as scroll, outbound clicks, on-site search or file downloads. It is a starting point, not the measurement plan. Check which options are turned on: an automatic event that does not represent a goal adds noise. When the interaction matters to the business — a qualified form submit, a click on the phone, the choice of a variant — use an explicit event, with a name and parameters you decide.
What is actually collected also depends on consent and on the stream settings. A tag that fires before the user has chosen, or that ignores a refusal of measurement, is not a “more complete” setup. It is a setup that needs to be reviewed.
The event hierarchy
Events collected automatically
Some events arrive with the Google tag, with no extra configuration. You need to know them so you do not duplicate them. If enhanced measurement already records a given click, a second tag with the same meaning inflates the counts. Before you create a new one, check what the stream is already sending.
Recommended events
Google proposes names for recurring actions, so that reports and integrations recognize them. For leads, events such as generate_lead, sign_up and contact are useful when they really describe the action. The name alone is not enough: you need parameters that distinguish an information form from a quote request, or a newsletter signup from an account that was created.
Custom events
When no recommended name fits, you can use one of your own, stable and documented: click_telefono, avvio_configuratore, prenotazione_showroom. Write it in lowercase, with no spaces, and do not change it with every campaign. Historical reports stay readable only if the name stays the same.
Parameters and custom definitions
Parameters are the information attached to the event. value and currency say how much the action is worth. method can say whether the login happened with email or with another system. A business parameter, for example the product line or the location that was chosen, lets you filter the reports without multiplying the events.
In GA4 not every parameter immediately becomes a dimension in the standard reports. The ones you need in explorations have to be registered as custom definitions, within the limits of the property, and with names that match the DataLayer. Document the list: event name, parameters, type (text or number), where it is sent, and what it is for.
Watch out for personal data. A parameter is not the place for a plain-text email, a name or a phone number. If a technical identifier is necessary, decide whether it is truly required and whether it respects consent and the privacy notice. The practical rule is simple: into the DataLayer and into GA4 you send what you need in order to measure, not the customer’s personal record.
Clicks that are already on the page (phone, email, social) become GA4 events with the containers Phone click tracking, TAG Email, TAG Facebook, TAG Instagram, TAG LinkedIn or, together, Tracking Social 6-in-1.
The ecommerce funnel
For a store, the schema GA4 recommends covers the steps the sales team already knows. Tie them to a consistent DataLayer, not to CSS selectors in the theme. The package we prepare on this schema is the Tracker E-commerce.
view_item_list: the user sees a list or a category.select_item: the user chooses a product from the list.view_item: the user opens the product page.add_to_cartandremove_from_cart: the cart is changed.begin_checkout: checkout starts.add_shipping_infoandadd_payment_info: shipping and payment are entered, if those steps really exist in your checkout.purchase: the order is complete, with a consistenttransaction_id,value,currencyanditemsarray.
Each item in the array should have at least an id, a name, a price and a quantity. Prices and quantities must be sent as numbers, not as text with a euro symbol. Before a new ecommerce push it is worth clearing the previous object, so the data of one order does not stay attached to the next.
Do not implement steps the site does not have. If there is no separate shipping page, a fake add_shipping_info dirties the funnel. Five real events are better than nine events copied from a script.
Consent and data quality
GA4 should be read together with consent. In Consent Mode the tags can adapt their behavior to the user’s choices; the configuration has to be checked against your banner, not taken for granted because “the plugin is installed”. If the banner does not talk to the tags, start from Consent Mode v2. Check that, when the user refuses, measurement respects what you stated in the privacy notice.
Other factors change the numbers you see: Google Signals, thresholds on reports when volumes are low, property filters, time zones. A sudden drop is not always a bug in the tag. First compare the period, the data stream and the state of the published container.
Quality also depends on types. The string "249,00" is not the number 249. An empty transaction_id on half of the orders makes deduplication useless. These checks belong in preview, not three months later, when campaigns have already been optimized on skewed data.
How to validate the setup
The sequence we use is short, and it should be repeated on every important release of the site.
- Open the Google Tag Manager preview and walk the real funnel: list, product page, cart, checkout, thank-you page.
- Check that each event fires only once, with the expected parameters and the right types.
- In GA4, use DebugView to see the same events arrive in the stream, not only “inside the container”.
- Check a reloaded thank-you page:
purchasemust not fire again if the order is the same. - Only then publish the container version, and note the date, the author and what changed.
DebugView is the test bench. Standard reports can take time and they apply thresholds. If the event does not show up in debug, it will not show up reliably in the reports.
Typical problems
- Payment referrals: the gateway (PayPal, card, a hosted bank transfer) can show up as the source of the purchase. Check the domains to exclude in the referral settings, otherwise the paid channel “loses” conversions to a technical referral.
- Cross-domain: if the path moves from one domain to another, without a linker the user looks new halfway through and attribution breaks. Configure the domains on the stream and check a real purchase.
- Double page_view or double purchase: they often come from two GA4 tags in the same container, or from one tag in the theme plus one in GTM. One stream, one configuration tag.
- Recommended events with an empty payload: the name is there,
itemsis not. Ecommerce reports stay at zero even if “the tag fires”.
Google Analytics 4 FAQ
Is enhanced measurement enough for an ecommerce store?
No. It covers generic interactions. A store needs the funnel events, with products, value and order id, published by the DataLayer.
Is the Google tag better in the theme or in Google Tag Manager?
If you also manage Ads, consent and custom events, GTM is more orderly. Avoid having the same tag both in the theme and in the container: that is the most common cause of double counting.
Why does the number of purchases not match the order system?
Because GA4 counts events in the browser, with consent, filters and possible reloads of the thank-you page. The order system counts orders. Bringing the two numbers closer is the goal; making them identical to the cent, without a server-side check, is not realistic.
Do I have to create a custom definition for every parameter?
No. Only for the ones you want to use as dimensions or metrics in the reports. Keep the list short and aligned with the questions the team actually asks.
Who keeps GA4 up to date when the site changes?
Whoever changes the checkout or the forms must tell whoever manages the tags, and the DataLayer must remain the contract between the two. EasyTag Pro steps in on that join: events, parameters, container and verification, without asking the company to hire an analytics department.
Event types and page_view
What is the difference between automatic events, enhanced measurement, recommended events and custom events?
They are four levels, from the most generic to the one that is most specific to you.
- Automatic: they start with no extra configuration.
- Enhanced measurement: scroll, outbound clicks, on-site search, video, downloads.
- Recommended: Google’s standard names and parameters, useful for reports and product features.
- Custom: actions that only your business defines.
Enhanced measurement does not replace the Tracker E-commerce funnel.
Why does Google Analytics send page_view when the tag starts?
Because the Google tag configuration sends a page_view hit by default, unless you turn it off with send_page_view: false. You turn it off in SPAs, and when the page view is published by the dataLayer, as explained in the DataLayer guide.
How do you send an event with gtag.js, and which parameters does it accept?
Syntax: gtag('event', 'nome_evento', { parametro: valore }). The second argument is the event name. The third is an object of event parameters, or of routing toward a destination.
Parameters, conversions and ecommerce
What is the difference between event parameters and user properties?
Event parameters describe that single occurrence: currency, value, transaction_id, search_term. User properties describe who takes the action and they stay attached to later interactions: plan, customer type, area.
How do you track conversions, that is key events, in Google Analytics?
You send the event with the correct name and parameters, then you mark it as a key event in the GA4 property. Typical names: purchase, generate_lead, sign_up. For phone, email and WhatsApp the signal comes from the Phone click tracking, TAG Email and Contacts 3-in-1 containers.
Which parameters are critical for the purchase event?
transaction_id, unique, so the same order is not counted twice.value, a number, not a string.currency, a three-letter ISO code, for exampleEUR.items, withitem_id,item_name,price,quantity.
They are the same fields as Tracker E-commerce.
Why must transaction_id be unique on the purchase event?
Because GA4 deduplicates orders that share the same id. A reload of the thank-you page, or a double submit, must not become two purchases.
How is the items array built in ecommerce events?
It is a list of objects. Each object is an item of the action (view_item, add_to_cart, begin_checkout, purchase). Useful fields: item_id, item_name, item_brand, item_category, price, quantity, index.
What is the difference between view_item_list and select_item?
view_item_list measures the view of a grid or a category, with item_list_id and item_list_name. select_item measures the click on an item in that list, before the product page.
How do you track the purchase funnel with the recommended events?
In sequence, published by the dataLayer and not by CSS selectors in the theme:
view_itemadd_to_cartview_cartbegin_checkoutadd_shipping_infoandadd_payment_infopurchase
The package that covers them is Tracker E-commerce. The data layer is explained in the DataLayer guide.
What happens if value or price arrive as a string, for example "99.00"?
Reports and monetary metrics can add the value badly, or drop it. value, price and quantity must be sent as numbers.
How do you handle refunds in Google Analytics?
With the refund event and the same transaction_id as the original order, plus currency and the refunded value, or items if the refund is partial.
Leads, SPAs, data quality and limits
How do you send lead-generation events in a standard way?
With recommended events: generate_lead (also with an estimated currency and value) and, in qualification flows, qualify_lead or close_lead. The click on the phone, on mailto and on WhatsApp stays its own event: see Contacts 3-in-1.
How do you track single-page applications, where there is no new HTTP page load?
Turn off the automatic page_view if the first hit would be doubled, and send a page_view on every view change with an updated page_location and page_title. In GTM the same result comes from a dataLayer.push with a dedicated event. Installation detail: DataLayer.
What is the difference between the native GA4 tag in GTM and gtag('event', ...)?
In the native tag you map parameters and variables in the interface, usually after a dataLayer.push. With gtag('event', ...) the call lives in the page script. The two together, on the same event, duplicate the hits.
How do you avoid sending personal data in clear text inside GA4 parameters?
You sanitize it upstream, before the push. No email, phone number or other identifying data in URLs, event names or parameters. Consent on these flows is covered in the Consent Mode guide.
What does it mean to register a parameter as a custom dimension or metric?
GA4 receives the parameter immediately, but you see it in reports and explorations only after you have created the custom dimension or metric in the property.
How do you track forms and file downloads?
file_downloadwith enhanced measurement, or a dedicated event withfile_name,file_extension,link_url.form_startandform_submit, or a custom event only on a confirmed submit, not on a simple click of the button.
Which naming rules should events and parameters follow?
- Lowercase
snake_case, with no spaces. - No reserved prefixes:
ga_,google_,firebase_. - The same name on web and app, otherwise cross-platform reports do not join up.
How do you verify that an event arrives with the right parameters?
With DebugView in Google Analytics, together with Tag Manager Preview or Tag Assistant. Check the single event and every parameter attached to it, not only the report total.
What is the link between GA4 events and remarketing in Google Ads?
If the properties are linked and advertising signals are allowed, GA4 events and audiences are imported into Google Ads for bidding and remarketing. Product remarketing, with the feed id, is Dynamic Remarketing, also explained in the Google Ads native tag.
What happens if an event fires before the tag is ready, or before the consent update?
Without a queue, or without Consent Mode, the hit can be dropped, or it can leave with a restrictive consent state. With GTM or gtag and Consent Mode, the request follows the state that was applied.
How do you handle several properties with the same dataLayer?
By routing each tag to its own Measurement ID G-XXXX, based on the trigger or on the destination parameter. The queue stays one; the destinations do not.
Why align event names between the site and the app?
So that you can read purchase or sign_up as the same action on web and app. Different names split funnels and audiences.
How do you avoid filling the page with redundant events?
Write the taxonomy first: only events that serve analysis, funnels, conversions or bidding. Attributes belong in parameters, not in ten almost identical event names.
Products that send these events
From the guide to the product page: the same events, ready to import or to quote.
Phone click tracking
Clicks on tel: links, sent to Google Ads and GA4.


TAG Facebook
Outbound clicks to Facebook / Meta for conversions and analytics.

TAG Instagram
Clicks to Instagram from calls to action and in-page links.

Tracking Social 6-in-1
Facebook, Instagram, LinkedIn, X, YouTube and Telegram.
Tracker E-commerce
Data layer and view_item, cart, checkout and purchase events.
