Shahin

Data Collection

Beginner
Updated Jul 11, 2026 Shahin editorial 2 min read
PronunciationEN/ˈdeɪtə kəˈlɛkʃən/

Data collection is the set of steps that turn user behaviour and page state into structured events and send them to an analytics server.

In client-side tracking a script runs inside the page, builds each event with a name, properties and a fixed context such as page URL, referrer, user agent and visitor identifier, then posts it in batches to a collection endpoint; in server-side tracking the same work happens in the backend and does not depend on the browser. Collection is always lossy: ad blockers, dropped connections or a tab closing before the request is sent mean some events never arrive, which is why two analytics tools on one site never report exactly the same number. The point learned late is that uncollected data cannot be recovered; a question asked tomorrow can only be answered from events recorded starting today.

FAQ