TapCub is live — analytics, insights and live chat, free on one platform
Analytics

Web analytics data sources: where your numbers come from and why they disagree

Five web analytics data sources see different parts of the same journey. A source-by-source comparison, a numeric reconciliation from 4,200 ad clicks to 3,000 sessions, and a rule for which source decides which question.

Su He Published Nov 23, 2026 12 min read Analytics
Sample data: 300 requests never completed, 600 were robots and prefetches, and 300 visits lost the script, so 3,000 ÷ 4,200 = 71.4% of clicks appear as sessions.Sample data

Web analytics data comes from five sources: a tracking script, server logs, search engine reports, ad platforms and your own CRM or order records. They disagree because each sees a different step between click and sale. In the sample here, 4,200 ad clicks become 3,000 script sessions, and every step of the loss has a known cause.

What you will learn

  • Each source sees a different step: script (behaviour), logs (requests), search report (searches), ad platform (clicks), CRM (money)
  • 4,200 clicks to 3,000 sessions is 71.4%, explained by abandoned requests, robots and blocked scripts, not by a bug
  • Pick one source per question and write it down: money from the CRM, behaviour from the script, requests from the log

The five sources behind every web number

Web analytics data sources are the systems that record visits, clicks and results: a tracking script in the browser, your web server's logs, a search engine's webmaster report, the ad platforms you pay, and your own order or customer records. Each one watches a different moment of the same journey, with a different method, so each reports a different number for what looks like the same thing.

Here is where each source sits on the path from a click to a sale:

  1. Ad platform or search engine. Counts the click or impression on its own side, before your site is involved.
  2. Web server log. Records every request that reached your server, including requests from robots and requests the browser never displayed.
  3. Tracking script. Runs in the visitor's browser after the page loads and reports what a person did there.
  4. Your backend or CRM. Records what you can prove: a lead, an order, a payment.

Search Console type reports (the webmaster tools of search engines) sit with the first group: they count on the search side. Before you chase a gap between two numbers, decide which two points on this path you are comparing. For a structured review of the whole setup, see the web analytics audit; for how to get a tool running in the first place, see how to implement web analytics.

What each source can and cannot see

SourceWhat it seesStrengthBlind spotTypical bias
Tracking scriptPage views, events, time on page, referrer, screen sizeSees behaviour after the page loads, per personBlocked scripts, no consent, people who leave before it loadsUndercounts
Server logsEvery HTTP request: time, address, URL, status code, user agentComplete for what reached the server; no script neededNo behaviour after load; cannot tell people from robots without workOvercounts people (robots, prefetch)
Search Console reportImpressions, clicks, position per query and pageThe only view of searches that did not clickAnonymised queries, delay, no behaviour on your siteDiffers by definition
Ad platformImpressions, clicks, cost, platform-side conversionsCost and audience dataCounts clicks, not arrivals; counts its own conversionsOvercounts arrivals, claims credit
CRM or order systemLeads, orders, revenue, customer idsThe source of truth for moneyRarely knows the source of a visit unless you pass it inUndercounts source detail

No row wins. A script is the only source that sees behaviour on the page; a log is the only one that is complete for requests; the CRM is the only one that is true about money. Use each for the question it is built for.

Why the numbers disagree: one reconciliation

Sample data: one month of a paid campaign. The ad platform reports 4,200 clicks. Walk those clicks down to what the tracking script reports.

StepCountLost at this stepWhy
Clicks reported by the ad platform4,200—The platform counts the click when it happens
Requests for the landing page in the server log3,900300Some people close the tab or lose the connection before the request completes
Human page loads after removing robots and prefetches3,300600Automated requests that the log cannot tell apart from people
Sessions in the tracking script3,000300Blocked scripts, no consent to measure, visits ended before the script ran

The script reports 3,000 ÷ 4,200 = 71.4% of the ad platform's clicks, and nothing is wrong. Each gap has a known cause, and none of them is a bug. If you chase "the missing 1,200 visits" as an error, you will either break tracking by loosening filters or add robots to your visitor count.

Two of those steps are worth a number from outside. Automated traffic is large: Imperva's 2025 Bad Bot Report says automated traffic accounted for 51% of all web traffic in the period it covers, which is why an unfiltered server log overstates people. And scripts can lose events at page exit unless they use a browser feature built for it: MDN notes that navigator.sendBeacon() queues a small request that the browser sends without delaying the next page, with a limit of about 64 KiB of data.

app.tapcub.com

From ad clicks to script sessions

sample campaign month
Ad platform clicks4,200
Server log requests3,900
Human page loads3,300
Script sessions3,000
Sample data
Sample data: 300 requests never completed, 600 were robots and prefetches, and 300 visits lost the script, so 3,000 ÷ 4,200 = 71.4% of clicks appear as sessions.

A rule for the other direction: Search Console vs your script

Search-engine webmaster reports count searches and clicks on the search page; your script counts sessions on your site. They also disagree, for reasons the search engine documents.

Google's Search Console help page for the performance report lists three that matter here: the newest data can be preliminary and may change in the next few hours; chart totals can differ from table totals because of how rows are aggregated; and results are personalised to the time, place, device and recent history of the searcher. Add to that a delay of a day or more before data appears, and the fact that the report counts clicks from search, not arrivals.

Sample data: Search Console reports 2,000 clicks to your site from organic search in a month; your script reports 1,720 organic sessions. 1,720 ÷ 2,000 = 86.0%. A gap of this size is normal and not worth debugging. A gap of 40% would be.

Use Search Console for what only it knows (queries, impressions, position) and your script for what happens after the click. Do not try to make the two totals equal.

Gap you seeUsual causeWhat to do
Ad clicks higher than script sessionsRequests that never finished, robots, blocked scriptsBuild the waterfall step by step
Log requests higher than script sessionsRobots, assets, prefetch, blocked scriptsCount only document requests, filter robots
Search clicks higher than organic sessionsClicks that never loaded; different definitionsAccept a small gap; investigate a large one
CRM leads fewer than script conversionsDuplicates, test submissions, failed handoffLet the CRM decide money questions

Gaps between sources and what usually explains them.

What a server log line tells you

Server logs are the plainest source and the easiest to misread. The Apache HTTP Server documentation gives the Common Log Format example:

127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326

Read left to right: the client address, two fields that are usually a hyphen (identity and authenticated user), the time the request was received with its time zone, the request line (method, path, protocol), the status code, and the size of the response in bytes. Apache's documentation notes that the status code tells you whether the request was successful (2xx), redirected (3xx), a client error (4xx) or a server error (5xx).

Three consequences for analytics:

  • One page view can be many lines. Every image, stylesheet and script is its own request. Count only document requests with a 200 status.
  • There is no "visit". A visit is something an analytics tool builds from the log by grouping requests; different tools build it with different rules.
  • Robots and your own checks are in there. Filter by user agent and by known bot ranges before you count people, and remember that a robot can pretend to be a browser.

Logs are the best source for what no script can see: crawler visits, requests that returned an error, and traffic when scripts are blocked. The log file analysis for SEO guide goes deeper on the crawler side.

Choose the source that fits the question

Your questionBest sourceCheck it against
How many people came, and what did they do?Tracking scriptServer log page loads (expect the script to be lower)
Is a crawler or robot hitting us, and did it get errors?Server logThe bot report in your analytics tool
Which queries bring searchers, and where do we rank?Search Console reportScript sessions from organic search, within about 15% in the sample above
How much did a click cost?Ad platformScript sessions with the same campaign tag
How many leads and how much revenue?CRM or order systemScript conversions; the CRM wins when they differ
Which source produced the customer?Script source data joined to the order idThe CRM's own "source" field

Rules of thumb that save arguments:

  • If the question is about money, the order system decides.
  • If the question is about behaviour on the page, the script decides.
  • If the question is about what reached the server, the log decides.
  • If two sources must agree and do not, compare definitions before data.

A five-step method to reconcile two numbers

  1. Write both definitions. For example, "click" and "session" are different things. A session in many tools is cut after 30 minutes of inactivity, and a click is a single tap.
  2. Match the date range and time zone. A report in UTC and one in local time split a late-night visit into different days.
  3. Apply the same filters. Same country, same page, same campaign tag, same bot handling.
  4. Build the waterfall. List each step from the first source to the second, like the table above, and put a number on each loss.
  5. Stop when the unexplained gap is small. Decide in advance what is small, for instance 5%, and write it down. A permanent gap with a known cause is fine.

How to do it in TapCub

Take the campaign example above. TapCub can hold the script, the logs, the search report and your spend in one project, so the waterfall is something you can read in one place.

  1. Install the script. Use the code from Web analytics › Configuration › SDK code. Web analytics › Sources then shows visitors by channel, source and campaign tag, and Web analytics › Reports gives you the pageviews, visitors, sessions and conversion columns to compare against the log.
  2. Import a server log for the gap. Under All-platform analytics › Data › Data import, upload an Nginx or Apache log, up to 100,000 lines per file. The import skips crawler traffic, so robot requests do not inflate the people you compare; crawler data goes through the server interface instead.
  3. See robots separately. Web analytics › Bots lists recognised crawlers on their own, and new projects count them apart from real visitors by default, so they stay out of the visitor and conversion denominators.
  4. Connect the search report. Monitoring › Search performance reads clicks, impressions, click-through rate and average position from Google Search Console or Bing Webmaster, normally one to three days late. Baidu offers no click or impression interface.
  5. Bring in spend. All-platform analytics › Business › Channel ROI accepts daily spend by channel, source and campaign and works out cost per click and cost per acquisition, so ad-platform costs sit next to the sessions the script counted.

TapCub does not pull data out of ad platforms or CRMs on its own, and it does not replace them for money questions; you send it the spend and the orders.

FAQ

What are the main sources of web analytics data?

The five sources are a tracking script in the browser, server logs, search engine webmaster reports, ad platform reports and your own CRM or order records. Each sees a different point on the path from click to sale, so each uses its own definitions and reports its own count.

Why do my analytics numbers not match my ad platform?

An ad platform counts the click; your analytics counts a session after the page and script load. In the sample above, 4,200 clicks became 3,000 sessions: 300 requests never completed, 600 were robots, and 300 lost the script to blockers or missing consent. A gap of about 30% is not unusual.

Are server logs more accurate than a tracking script?

They are more complete for requests but not for people. A log records every request including robots, prefetches and assets, and has no knowledge of behaviour after load. A script sees behaviour but misses blocked or unconsented visits. Use logs for crawlers and errors, scripts for people.

Why does Search Console show different clicks from my analytics?

Search Console counts clicks on search results; analytics counts sessions on your site. The webmaster report also has preliminary recent data, personalised results and a delay. In the sample the gap is 14%; a gap of 40% would be worth investigating for tracking or redirect problems.

Which source should be the source of truth?

It depends on the question. Use the CRM or order system for revenue and customers, the tracking script for behaviour, server logs for what reached the server, and the search report for queries and rankings. Pick one source per question and write down which.

Sources

Filed underAnalytics

Was this article helpful?

We use your answers to fix and expand this page.

Su He

Data Analyst

Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.

See script, log and search data in one project

Web analytics with bot separation, log import, search performance and channel spend.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics