Web analytics is the practice of collecting, measuring and reading data about how people (and machines) use a website, so you can see what works and fix what does not. It counts visits, pages, sources and actions such as sales or sign-ups. The figures come from a tag in the page, from server records, or from both.
What is web analytics? #
Every time someone opens a page, something can be recorded: the address, the time, the device, the page they came from and what they did next. Web analytics turns those records into reports. A small business owner might ask 4 plain questions. How many people came? Where did they come from? What did they look at? Did they buy, book or call?
The common units are the pageview, the session and the unique visitor. On top of those sit rates such as engagement rate, bounce rate and conversion rate. The number you care about most is your key performance indicator, and for most shops that is sales, not visits.
How does it collect data? #
There are 2 main methods, and they see different things.
| Method | How it works | What it misses |
|---|---|---|
| Page tag | A script in the page sends an event to the analytics service when the page loads or a button is pressed. | People who block scripts or refuse consent, and almost all bots, because most never run the script. |
| Server logs | The web server writes one line for every request it answers. | Clicks inside the page, scrolls and other actions that never reach the server. |
Google Analytics 4 is the best known tag-based tool. Its help page on automatically collected events says some events fire with no extra code once the Google tag is installed. Examples include page_view each time a page loads, session_start when someone engages with the site, and first_visit the first time a person arrives. Read our page on Google Analytics 4 for the event model in detail. Server logs and log file analysis cover the other side.
Why does it matter for search? #
Search tools tell you what happened before the click. Analytics tells you what happened after it. Google Search Console shows impressions, clicks and queries. Your analytics shows whether those visitors stayed, read and bought. Put the 2 together and you can find pages that rank but do not sell, or pages that sell well but get little organic traffic. The 2 sets of numbers never match, and Search Console vs analytics sets out why.
Why does it matter for AI answers? #
AI assistants now send visitors, and they also send machines. Google states in its help for site owners on AI features that visits sent by AI Overviews or AI Mode land inside Search Console’s Performance report under the “Web” search type. That means they are mixed in with normal search clicks rather than shown on their own. Visits from chat tools usually arrive as referral traffic, or as direct traffic when no referrer is passed. See ChatGPT referral traffic for how to spot them.
The machine side is bigger. OpenAI’s crawler page lists separate agents for search, training and user-started fetches. A tag-based tool will not count most of them. Only your server records see every AI crawler request.
What about bots in my reports? #
Google’s help page on known bot-traffic exclusion says traffic from known bots and spiders is removed by itself in GA4. It uses Google research and the IAB International Spiders and Bots List. You cannot switch this off, and you cannot see how much was removed. So bots that are not on the list can still slip in, and the ones removed are invisible to you. Our pages on bot traffic in Google Analytics and referral spam show the warning signs.
Do I need consent in the UK? #
Often not, if the analytics is only for statistics. The Data (Use and Access) Act 2025 changed PECR. The ICO’s guidance on the exceptions now has a statistical purposes exception. It lets you store or read information without consent when the sole purpose is counting how your service is used, under 4 conditions:
- you give clear and comprehensive information about the purpose;
- you offer a simple, free way to object, and you stop when someone does;
- you use the data only to improve your service or website;
- any third party acts as your processor, not a joint controller.
Analytics used for advertising or profiling falls outside the exception, so a cookie banner is still needed for that. UK GDPR still applies to any personal data. Read more on cookies, first-party cookies, Consent Mode v2 and cookieless analytics.
Common mistakes #
- Trusting one number. A tag undercounts people who refuse consent or block scripts. Our page on why analytics numbers are low lists the causes.
- Untagged campaigns. Emails and social posts without UTM parameters end up as direct traffic.
- Measuring visits, not outcomes. Set up conversion tracking first, then judge pages by what they earn.
- Ignoring the machines. A tag-only view hides crawlers that read your pages but never run scripts.
- Too many tools. 3 overlapping tags slow the page and give 3 different answers.
A worked example #
A small online shop sees 1,200 sessions a month in its tag and 40 orders. That is a 3.3% conversion rate. Its server logs show far more requests to product pages, most from crawlers. The owner adds UTM tags to the monthly email, and the next month 180 sessions move from “direct” to “email”, with 9 orders. The email now has a measured value. The owner also checks which landing pages convert and finds 2 product pages with good search clicks and no sales. Both had a missing price in the visible text. Fixing that is worth more than any new traffic.
How do I check my set-up? #
- Run our tracking checker to list every tag a page loads. Until then, view the page source.
- Use our cookie checker to see what is stored before consent.
- Build campaign links with the UTM builder.
- Check which AI bots your site lets in with the AI bot checker, then compare with your logs using our AI crawler log analyser.
- For a cookie-free view of people and machines in one place, see cookie-free analytics (Pro) and our free AI analytics page.
Questions #
Is web analytics the same as Google Analytics? #
No. Google Analytics is one product. Web analytics is the whole field, including server logs, heatmaps and tools such as Microsoft Clarity.
Why do 2 tools give different visitor counts? #
They define a visitor and a session differently, filter bots differently and lose different people to blockers. Compare trends, not exact totals.
Can analytics tell me which channel caused a sale? #
Only in part. That is the job of attribution, and every model is an estimate.
Does server-side tracking avoid consent rules? #
No. Server-side tracking changes where data is sent, not the law on reading a device or using personal data.
Related words #
Sources #
- Google Analytics Help: Automatically collected events, checked 24 November 2026
- Google Analytics Help: Known bot-traffic exclusion, checked 24 November 2026
- ICO: Guidance on the use of storage and access technologies, What are the exceptions?, checked 24 November 2026
- Google Search Central: AI features and your website, checked 24 November 2026
- OpenAI: Overview of OpenAI crawlers, checked 24 November 2026
Updated 24 November 2026 by URSY.
Cite this page: Web analytics. URSY. Updated 24 November 2026. https://ursy.com/wiki/web-analytics/ · Section links
Tools for this
- LiveWhat is this site built with? (CMS, shop, analytics)Run the check →
- LiveImage SEO Checkeralt text, AVIF/WebP, sizes and licence markupRun the check →
- LiveCore Web Vitals Checkerreal-user speed and its historyRun the check →
- LiveSSL Certificate Checkerexpiry, chain and mixed contentRun the check →
- LiveSecurity Headers CheckerRun the check →
- LivePrompt Injection Checkerhidden text or planted AI instructions on a pageRun the check →
- ProCookie-free analyticsVisits, pages, sources, without cookiesIn URSY Pro →
- ProReal-timeWho's on the site nowIn URSY Pro →
- ProPagesEvery page: views, time, exitsIn URSY Pro →