{
    "title": "Web analytics",
    "description": "Web analytics is collecting and reading data on how people and machines use your website: visits, sources and sales, by tag or by server logs.",
    "url": "https://ursy.com/wiki/web-analytics/",
    "canonical": "https://ursy.com/wiki/web-analytics/",
    "markdown": "https://ursy.com/wiki/web-analytics/index.md",
    "json": "https://ursy.com/wiki/web-analytics/index.json",
    "published": "2026-11-24T22:13:22+00:00",
    "updated": "2026-11-24T23:06:41+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/web-analytics/",
    "headings": [
        {
            "level": 2,
            "text": "What is web analytics?",
            "id": "what-is-web-analytics",
            "url": "https://ursy.com/wiki/web-analytics/#what-is-web-analytics"
        },
        {
            "level": 2,
            "text": "How does it collect data?",
            "id": "how-does-it-collect-data",
            "url": "https://ursy.com/wiki/web-analytics/#how-does-it-collect-data"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/web-analytics/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/web-analytics/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "What about bots in my reports?",
            "id": "what-about-bots-in-my-reports",
            "url": "https://ursy.com/wiki/web-analytics/#what-about-bots-in-my-reports"
        },
        {
            "level": 2,
            "text": "Do I need consent in the UK?",
            "id": "do-i-need-consent-in-the-uk",
            "url": "https://ursy.com/wiki/web-analytics/#do-i-need-consent-in-the-uk"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/web-analytics/#common-mistakes"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/web-analytics/#a-worked-example"
        },
        {
            "level": 2,
            "text": "How do I check my set-up?",
            "id": "how-do-i-check-my-set-up",
            "url": "https://ursy.com/wiki/web-analytics/#how-do-i-check-my-set-up"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/web-analytics/#questions"
        },
        {
            "level": 3,
            "text": "Is web analytics the same as Google Analytics?",
            "id": "is-web-analytics-the-same-as-google-analytics",
            "url": "https://ursy.com/wiki/web-analytics/#is-web-analytics-the-same-as-google-analytics"
        },
        {
            "level": 3,
            "text": "Why do 2 tools give different visitor counts?",
            "id": "why-do-2-tools-give-different-visitor-counts",
            "url": "https://ursy.com/wiki/web-analytics/#why-do-2-tools-give-different-visitor-counts"
        },
        {
            "level": 3,
            "text": "Can analytics tell me which channel caused a sale?",
            "id": "can-analytics-tell-me-which-channel-caused-a-sale",
            "url": "https://ursy.com/wiki/web-analytics/#can-analytics-tell-me-which-channel-caused-a-sale"
        },
        {
            "level": 3,
            "text": "Does server-side tracking avoid consent rules?",
            "id": "does-server-side-tracking-avoid-consent-rules",
            "url": "https://ursy.com/wiki/web-analytics/#does-server-side-tracking-avoid-consent-rules"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/web-analytics/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/web-analytics/#sources"
        }
    ],
    "links": [
        {
            "text": "pageview",
            "url": "https://ursy.com/wiki/pageview/",
            "internal": true
        },
        {
            "text": "session",
            "url": "https://ursy.com/wiki/session/",
            "internal": true
        },
        {
            "text": "unique visitor",
            "url": "https://ursy.com/wiki/unique-visitor/",
            "internal": true
        },
        {
            "text": "engagement rate",
            "url": "https://ursy.com/wiki/engagement-rate/",
            "internal": true
        },
        {
            "text": "bounce rate",
            "url": "https://ursy.com/wiki/bounce-rate/",
            "internal": true
        },
        {
            "text": "conversion rate",
            "url": "https://ursy.com/wiki/conversion-rate/",
            "internal": true
        },
        {
            "text": "key performance indicator",
            "url": "https://ursy.com/wiki/kpi-key-performance-indicator/",
            "internal": true
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "automatically collected events",
            "url": "https://support.google.com/analytics/answer/9234069",
            "internal": false
        },
        {
            "text": "Google Analytics 4",
            "url": "https://ursy.com/wiki/google-analytics-4/",
            "internal": true
        },
        {
            "text": "Server logs",
            "url": "https://ursy.com/wiki/server-logs/",
            "internal": true
        },
        {
            "text": "log file analysis",
            "url": "https://ursy.com/wiki/log-file-analysis/",
            "internal": true
        },
        {
            "text": "Google Search Console",
            "url": "https://ursy.com/wiki/google-search-console/",
            "internal": true
        },
        {
            "text": "impressions",
            "url": "https://ursy.com/wiki/impressions/",
            "internal": true
        },
        {
            "text": "organic traffic",
            "url": "https://ursy.com/wiki/organic-traffic/",
            "internal": true
        },
        {
            "text": "Search Console vs analytics",
            "url": "https://ursy.com/wiki/search-console-vs-analytics/",
            "internal": true
        },
        {
            "text": "AI assistants",
            "url": "https://ursy.com/wiki/ai-assistant/",
            "internal": true
        },
        {
            "text": "help for site owners on AI features",
            "url": "https://developers.google.com/search/docs/appearance/ai-features",
            "internal": false
        },
        {
            "text": "referral traffic",
            "url": "https://ursy.com/wiki/referral-traffic/",
            "internal": true
        },
        {
            "text": "direct traffic",
            "url": "https://ursy.com/wiki/direct-traffic/",
            "internal": true
        },
        {
            "text": "referrer",
            "url": "https://ursy.com/wiki/referrer/",
            "internal": true
        },
        {
            "text": "ChatGPT referral traffic",
            "url": "https://ursy.com/wiki/chatgpt-referral-traffic/",
            "internal": true
        },
        {
            "text": "crawler page",
            "url": "https://developers.openai.com/api/docs/bots",
            "internal": false
        },
        {
            "text": "AI crawler",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "known bot-traffic exclusion",
            "url": "https://support.google.com/analytics/answer/9888366",
            "internal": false
        },
        {
            "text": "bot traffic in Google Analytics",
            "url": "https://ursy.com/wiki/bot-traffic-in-google-analytics/",
            "internal": true
        },
        {
            "text": "referral spam",
            "url": "https://ursy.com/wiki/referral-spam/",
            "internal": true
        },
        {
            "text": "PECR",
            "url": "https://ursy.com/wiki/pecr/",
            "internal": true
        },
        {
            "text": "exceptions",
            "url": "https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/what-are-the-exceptions/",
            "internal": false
        },
        {
            "text": "cookie banner",
            "url": "https://ursy.com/wiki/cookie-banner/",
            "internal": true
        },
        {
            "text": "UK GDPR",
            "url": "https://ursy.com/wiki/uk-gdpr/",
            "internal": true
        },
        {
            "text": "cookies",
            "url": "https://ursy.com/wiki/cookie/",
            "internal": true
        },
        {
            "text": "first-party cookies",
            "url": "https://ursy.com/wiki/first-party-cookies/",
            "internal": true
        },
        {
            "text": "Consent Mode v2",
            "url": "https://ursy.com/wiki/consent-mode-v2/",
            "internal": true
        },
        {
            "text": "cookieless analytics",
            "url": "https://ursy.com/wiki/cookieless-analytics/",
            "internal": true
        },
        {
            "text": "why analytics numbers are low",
            "url": "https://ursy.com/wiki/why-analytics-numbers-are-low/",
            "internal": true
        },
        {
            "text": "UTM parameters",
            "url": "https://ursy.com/wiki/utm-parameters/",
            "internal": true
        },
        {
            "text": "conversion tracking",
            "url": "https://ursy.com/wiki/conversion-tracking/",
            "internal": true
        },
        {
            "text": "landing pages",
            "url": "https://ursy.com/wiki/landing-page/",
            "internal": true
        },
        {
            "text": "tracking checker",
            "url": "https://ursy.com/tracking-checker/",
            "internal": true
        },
        {
            "text": "cookie checker",
            "url": "https://ursy.com/cookie-checker/",
            "internal": true
        },
        {
            "text": "UTM builder",
            "url": "https://ursy.com/webmaster-tools/utm-builder/",
            "internal": true
        },
        {
            "text": "AI bot checker",
            "url": "https://ursy.com/ai-bot-checker/",
            "internal": true
        },
        {
            "text": "AI crawler log analyser",
            "url": "https://ursy.com/ai-crawler-log-analyzer/",
            "internal": true
        },
        {
            "text": "cookie-free analytics",
            "url": "https://ursy.com/pro/cookie-free-analytics/",
            "internal": true
        },
        {
            "text": "free AI analytics",
            "url": "https://ursy.com/free-ai-analytics/",
            "internal": true
        },
        {
            "text": "heatmaps",
            "url": "https://ursy.com/wiki/heatmaps/",
            "internal": true
        },
        {
            "text": "Microsoft Clarity",
            "url": "https://ursy.com/wiki/microsoft-clarity/",
            "internal": true
        },
        {
            "text": "attribution",
            "url": "https://ursy.com/wiki/attribution/",
            "internal": true
        },
        {
            "text": "Server-side tracking",
            "url": "https://ursy.com/wiki/server-side-tracking/",
            "internal": true
        },
        {
            "text": "Hit analytics",
            "url": "https://ursy.com/wiki/hit-analytics/",
            "internal": true
        }
    ],
    "words": 1213,
    "text": "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 Google Analytics 4 Cookieless analytics Server logs Conversion tracking Hit analytics 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.",
    "source": "https://ursy.com/wiki/web-analytics/"
}