Skip to main content
miji.be

Event Tracking

A method of measuring user interactions that do not involve page transitions, such as button clicks, video plays, and file downloads.

Aug 23, 2026 / About 1 min read

Analytics

Event tracking is an analytics method that measures specific user actions on a website or app (button clicks, form submissions, video plays, file downloads, and more) as individual events. It captures detailed in-page user behavior that page views alone cannot reveal.

Google Analytics 4 (GA4) adopts an event-based measurement model, recording all user interactions as "events." As of August 2026 they fall into four types: automatically collected events (page_view, session_start, etc.), enhanced measurement events (scroll, click, file_download, etc., toggled on or off in the admin settings), recommended events (login, purchase, sign_up, etc.), and custom events (arbitrary events you define yourself). Because scroll and click belong to enhanced measurement rather than automatic collection, if they are not being recorded the first thing to check is whether they are enabled in the settings.

Click measurement for shortened URLs is a classic use case for event tracking. URL shortening services record an event each time a link is clicked, accumulating data on click counts, the clicker's country, device, browser, and click timestamp. Combined with GA4 event data, this enables end-to-end analysis from click through to post-click user behavior (page views, conversions, etc.).

In GA4, event tracking is implemented using the gtag.js gtag('event', ...) function. For example, to measure CTA button clicks, you would add gtag('event', 'cta_click', {button_text: 'Sign Up Now'}) to the button's onclick handler. Google Tag Manager (GTM) lets you configure events without editing code directly.

A critical aspect of event design is defining the events to track in advance and maintaining consistent naming conventions. Adding events ad hoc leads to scattered data that is difficult to analyze. It is recommended to standardize event names in snake_case and document parameter types and value ranges.

Was this article helpful?

Related Terms

Click Analytics

The measurement and analysis of user clicks on links, providing insights into engagement and traffic sources.

Conversion Rate

The percentage of users who complete a desired action after clicking a link, such as making a purchase or signing up.

Session

A group of user interactions with a website within a given time frame. A fundamental unit of web analytics measurement.

UTM Parameter

Tags added to URLs that track the source, medium, and campaign name of traffic in analytics tools.

Funnel

A model that visualizes the step-by-step process users go through before converting, shaped like a funnel. Used to identify drop-off points.

Clickjacking

An attack that tricks users into clicking on hidden elements by overlaying transparent frames on top of legitimate web pages.

Related Articles

Short URL Analytics 101: How to Read and Act on Click Data

An explanation of how to read and use the access analytics obtained from short URL click data. We introduce analysis methods by device / region / time of day, points to watch in bot filtering, the impact of privacy regulations, and how to build an improvement cycle.

How to Track Marketing Campaigns with Short URLs

Learn how to use short URLs for campaign tracking. Discover techniques for UTM integration, A/B testing, and data-driven marketing.

A/B Testing with Short URLs: Data-Driven Marketing

Learn how to run effective A/B tests using short URLs. Covers test design, statistical significance, and practical examples for landing pages, CTAs, and ads.

FAQ

What is the difference between event tracking and page views?
Page views measure page loads, while event tracking measures specific in-page actions (button clicks, scrolling, video plays, etc.). Multiple events can occur within a single page view.
How do I set up custom events in GA4?
Either add gtag('event', 'event_name', {parameters}) to your code, or configure triggers and tags in Google Tag Manager. GTM allows adding and modifying events without code changes, making it accessible for marketers as well.
Can tracking too many events affect performance?
Within normal ranges (a few dozen events per page), the impact is negligible. However, sending unlimited events for high-frequency actions like scrolling or mouse movement can increase network load. Use debouncing or sampling to keep it under control.

Put the terms to work

Shorten a URL for Free