Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeWeb 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:
- Ad platform or search engine. Counts the click or impression on its own side, before your site is involved.
- Web server log. Records every request that reached your server, including requests from robots and requests the browser never displayed.
- Tracking script. Runs in the visitor's browser after the page loads and reports what a person did there.
- 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
| Source | What it sees | Strength | Blind spot | Typical bias |
|---|---|---|---|---|
| Tracking script | Page views, events, time on page, referrer, screen size | Sees behaviour after the page loads, per person | Blocked scripts, no consent, people who leave before it loads | Undercounts |
| Server logs | Every HTTP request: time, address, URL, status code, user agent | Complete for what reached the server; no script needed | No behaviour after load; cannot tell people from robots without work | Overcounts people (robots, prefetch) |
| Search Console report | Impressions, clicks, position per query and page | The only view of searches that did not click | Anonymised queries, delay, no behaviour on your site | Differs by definition |
| Ad platform | Impressions, clicks, cost, platform-side conversions | Cost and audience data | Counts clicks, not arrivals; counts its own conversions | Overcounts arrivals, claims credit |
| CRM or order system | Leads, orders, revenue, customer ids | The source of truth for money | Rarely knows the source of a visit unless you pass it in | Undercounts 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.
| Step | Count | Lost at this step | Why |
|---|---|---|---|
| Clicks reported by the ad platform | 4,200 | — | The platform counts the click when it happens |
| Requests for the landing page in the server log | 3,900 | 300 | Some people close the tab or lose the connection before the request completes |
| Human page loads after removing robots and prefetches | 3,300 | 600 | Automated requests that the log cannot tell apart from people |
| Sessions in the tracking script | 3,000 | 300 | Blocked 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.
From ad clicks to script sessions
sample campaign monthA 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 see | Usual cause | What to do |
|---|---|---|
| Ad clicks higher than script sessions | Requests that never finished, robots, blocked scripts | Build the waterfall step by step |
| Log requests higher than script sessions | Robots, assets, prefetch, blocked scripts | Count only document requests, filter robots |
| Search clicks higher than organic sessions | Clicks that never loaded; different definitions | Accept a small gap; investigate a large one |
| CRM leads fewer than script conversions | Duplicates, test submissions, failed handoff | Let 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 question | Best source | Check it against |
|---|---|---|
| How many people came, and what did they do? | Tracking script | Server log page loads (expect the script to be lower) |
| Is a crawler or robot hitting us, and did it get errors? | Server log | The bot report in your analytics tool |
| Which queries bring searchers, and where do we rank? | Search Console report | Script sessions from organic search, within about 15% in the sample above |
| How much did a click cost? | Ad platform | Script sessions with the same campaign tag |
| How many leads and how much revenue? | CRM or order system | Script conversions; the CRM wins when they differ |
| Which source produced the customer? | Script source data joined to the order id | The 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
- 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.
- Match the date range and time zone. A report in UTC and one in local time split a late-night visit into different days.
- Apply the same filters. Same country, same page, same campaign tag, same bot handling.
- Build the waterfall. List each step from the first source to the second, like the table above, and put a number on each loss.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- Apache Software Foundation, Log Files, Apache HTTP Server 2.4 documentation (Common Log Format fields and status code classes). Checked 2026-11-23.
- Google, Performance report (Search), Search Console Help (preliminary data, chart and table totals, personalised results). Checked 2026-11-23.
- Mozilla, Navigator: sendBeacon() method, MDN Web Docs (asynchronous analytics requests without delaying unload; 64 KiB limit). Checked 2026-11-23.
- Imperva, 2025 Bad Bot Report (automated traffic accounted for 51% of all web traffic). Checked 2026-11-23.
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

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