Event tracking
Event tracking denotes capturing individual user actions on a website or in an app deliberately as so-called events. While a classic page view measures only that a page was loaded, event tracking captures concrete interactions within the page: a click on a button, submitting a form, playing a video, a download or a purchase. Every event can be enriched with additional parameters describing the context, which button was clicked or which item bought for instance. In Google Analytics 4 the event has even become the basic unit of measurement, since every interaction there, the page view included, is modelled as an event. The value of event tracking lies in making behaviour tangible that goes beyond reach alone. Only when you know how many visitors actually click a call to action, abandon a form or scroll to the end of a text can you judge whether a page fulfils its purpose. Event tracking is therefore the bridge between anonymous measurement of reach and genuine, data-driven improvement of content and user journeys.
Also known as: event tracking, event measurement
How event tracking is implemented technically
Technically, an event is fired by a trigger and sent to an analytics system. In practice this is almost always done through a Tag management system such as the Google Tag Manager. There you define triggers, such as a click on an element with a certain CSS class, and link them to a tag that sends the event to Google Analytics 4 sends.
Between website and tag management, the so-called data layer often mediates, a structured JavaScript data layer. The application writes event information into this data layer, Google Tag Manager reads it and passes it on in standardised form. That keeps Trackinglogic from application code, which makes maintenance and extension easier.
Every event carries a name and any number of parameters. A purchase event can contain value, currency and product list, for example. These parameters are decisive, because they make later analysis, Segmentation and Conversion tracking meaningful in the first place.
Event tracking in Google Analytics 4
With Google Analytics 4 the data model changed fundamentally. Universal Analytics' earlier scheme of category, action and label has gone. Instead every measurement consists of an event name and its parameters. That makes the model more flexible but demands a clean naming and parameter convention so reports stay consistent.
Google Analytics 4 distinguishes automatically collected events, recommended events with standardised names, and custom events. Using the recommended naming conventions brings ready-made reports and better comparability. Important events can be marked as conversions, or key events.
A well-planned measurement and event concept is what makes Marketing dashboards show reliable figures. Without a clear definition of what counts as an event, duplicates or gaps quickly appear and distort later analysis.
GDPR and consent in event tracking
Event tracking captures behavioural data and is therefore subject to the requirements of the GDPR and the TDDDG. As soon as cookies or comparable storage techniques are used for recognition, prior consent is generally required. Only after agreement through a consent tool such as Usercentrics or Cookiebot may the corresponding tags fire.
For GDPR-compliant tracking tag management should be configured so that events fire only where the matching consent exists. The Google Consent Mode controls which tags pause in the denied state or send only anonymised signals. Personal parameters such as email addresses never belong in an event unencrypted.
A data-minimising design is not only legally required but practical: recording only the events that answer real business questions keeps the setup maintainable and reduces the privacy risk.
Best practice for a clean event concept
Successful event tracking starts with a measurement plan that sets, before implementation, which actions are recorded, with which parameters and for what business purpose. That avoids sprawling events nobody can attribute any more.
A uniform naming convention is a must. Clearly named events such as add_to_cart or form_submit can be analysed unambiguously later, while inconsistent labels make analysis harder. A regular check that every event actually fires and returns correct values is also sensible.
For more complex or advertising-critical use cases, server-side tracking , where events run through your own server container. That improves data quality and control. A regular Performance audit reveals whether the event concept still matches the current goals.
Documenting the setup matters just as much. Recording which event represents which action, which parameters it carries and which business question it answers creates a shared basis for marketing, development and analysis. Without that documentation, valuable context is lost with every change of staff or relaunch, and events end up maintained twice or not at all. A centrally maintained tracking concept is therefore just as decisive as the technical implementation itself.
Frequently asked questions
What is the difference between a pageview and an event?
A pageview only measures that a page was loaded. An event records a specific interaction within the page, such as a click, a scroll or a purchase. In Google Analytics 4 even the pageview itself is modelled as an event, so all measurement follows the same scheme.
How do I set up event tracking in GA4?
Implementation through Google Tag Manager is usual: you define a trigger for the action you want and a tag sending a named event with parameters to Google Analytics 4. Information from the website is ideally supplied through a data layer. You then mark important events in GA4 as key events.
Do I need consent for event tracking?
As a rule yes. As soon as cookies or comparable techniques are used to recognise people, the GDPR and the TDDDG require prior consent. The tags should only fire once a consent tool signals agreement. Google Consent Mode helps tie the tags' behaviour to the consent status.
What is a data layer and what is it for?
The data layer is a structured JavaScript layer into which the website writes event information. Google Tag Manager reads that layer and passes the data on to analytics tools in standardised form. Tracking logic and application code thus stay separate, which greatly simplifies maintenance.
How many events should I track?
As many as necessary and as few as possible. A measurement plan recording only the actions that answer real business questions makes sense. Too many unstructured events make analysis harder and raise the privacy risk, while gaps prevent important insight.
Why should I capture events server-side?
Server-side tracking routes events through your own server container instead of straight from the browser. That improves data quality, raises control over what is passed on and is more robust against ad blockers. For advertising-critical conversions the approach is particularly advisable.
Related terms
Conversion tracking measures which user actions are triggered by which channels and campaigns.
Tag management handles tracking codes centrally through a tag management system instead of in the source code.
Collecting, measuring and analysing website data in order to improve content and conversions in a targeted way.
Google Consent Mode adjusts the behaviour of Google tags dynamically to the user's consent status, enabling GDPR-compliant tracking.
Server-side tracking processes data through your own server container rather than in the browser alone.
Web tracking records and evaluates how visitors behave on websites — page views, conversions and more.
Put AI to work for your business?
We help you integrate artificial intelligence into your processes, your marketing and your website — strategically and securely.

Your contact
Stefan
I look forward to hearing about your project and finding the best solution together.