Web analytics is the measurement, collection, analysis and reporting of website data to understand and improve how a site is used. It answers questions such as how many people visit, where they come from, which pages they view and whether they complete goals like a purchase or a signup. It covers behavior on the site itself, while keyword and ranking data come from other tools.
How is the data collected?
According to reports, there are two main methods.
- Page tagging. A JavaScript snippet on each page sends events to an analytics service. Google Analytics 4 works this way. It sees what happens in the browser, including events that never reach the server.
- Log file analysis. The web server’s access logs are evaluated. No change to the pages is needed, and the logs include bots and crawlers, which tagging usually misses. They contain no on-page behavior such as scrolling.
Which metrics matter?
GA4 reports sessions, views, users and key events. A session starts with the first event of a visit and ends after more than 30 minutes of inactivity, depending on the session timeout setting. Active users are users who had an engaged session or triggered specific engagement events. A key event is an event marked as particularly important to the business, for example a purchase. The same metrics are available per channel, such as organic search, so SEO results can be read next to other sources.
Privacy
Most tag-based tools store or read information on the visitor’s device. In Germany, § 25 TDDDG covers consent for storing or reading such information, with exceptions for what is strictly necessary to deliver a service the user explicitly requested. Article 6 GDPR lists the legal bases for processing personal data. Without consent, no tag data arrives, which is why reported traffic can fall short of real traffic.
This is not legal advice.
Example
An online shop connects GA4 and Search Console. The monthly view shows organic sessions, key events (orders) by landing page and the click trend from Search Console. Together, the data shows which landing pages bring visits that end in orders.
Sources
- Web analytics – Wikipedia (secondary)en.wikipedia.org
- Sessions, views, and users in Google Analytics 4 – Analytics Helpsupport.google.com
- Key events in Google Analytics 4 – Analytics Helpsupport.google.com
- § 25 TDDDG – Gesetze im Internetgesetze-im-internet.de
- Regulation (EU) 2016/679 (GDPR), Article 6 – EUR-Lexeur-lex.europa.eu
Last updated: