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

What is data collection? Definition, types and what to ask first

Data collection is the planned, systematic gathering of information to answer a question. Kinds of data, five questions to ask before collecting, and an example that cuts a 14-field form to 8 and shows what consent does to your counts.

Chen Yu Reviewed by Sophia Bennett Also called data gathering Last updated Nov 19, 2026 Glossary

Quick answer

Data collection is the planned, systematic gathering of information about the variables you care about, in order to answer a question. Before collecting, decide what decision each field changes, how it will be recorded and on what basis.

What data collection means

Data collection is the planned, systematic gathering of information about the variables you care about, so that you can answer a question. The data glossary of NNLM (the Network of the National Library of Medicine) describes it as the planned, systematic gathering of information on variables of interest, with methods that run from manual to automated: surveys, interviews, instrument readings, recordings and records extracted from systems (NNLM).

Three words in that definition matter:

  • Planned. You decide what to collect before you collect it. Collecting "everything, in case" is storage, not collection.
  • Systematic. The same thing is recorded the same way each time, so the values can be compared.
  • Variables of interest. Each item exists because some question needs it.

On a website this usually means the script and server calls that record visits, clicks and conversions; in a business it also covers forms, surveys, support conversations and imports from other systems.

Primary, secondary and first-party data

KindWhat it isExamplesMain risk
PrimaryYou gather it yourself for this questionYour own tracking events, a survey you sendCost and time; design mistakes are yours
SecondarySomeone else gathered it earlierPublic statistics, a purchased panel, a partner's reportMay not match your definitions
First-partyCollected by you from your own usersSite analytics, account data, chat transcriptsConsent and security are on you
Third-partyCollected by others across sitesAd-network audiencesLittle control over quality or lawful basis
Zero-partyVolunteered on purposeA preference you choose in a formSmall volume; self-reported bias

The same dataset can be primary and first-party at once. Before you collect, check whether secondary data already answers the question; if it does, you may not need to collect at all.

The five questions to ask before collecting

  1. What decision will this change? If you cannot name one, do not collect it.
  2. Which exact fields? Write each with its type, the allowed values and an example.
  3. How will it be recorded? Browser script, server call, form, import or survey; each has different gaps.
  4. On what basis and with what notice? Under the EU's GDPR, personal data must be collected for specified, explicit and legitimate purposes and limited to what is necessary for them (GDPR Article 5). Where consent is the basis, the controller must be able to demonstrate that the person consented (GDPR Article 7). This is a summary, not legal advice.
  5. How long will you keep it? Article 5 also limits keeping data in identifiable form to as long as necessary. Set the retention period when you plan the collection, not when the storage bill arrives.

A plan row can be as short as this, one per field:

FieldTypeAllowed valuesDecision it changesOwnerKeep for
referral_sourcetextutm_source value, or "direct"Which channel to fundGrowth lead13 months

If a row cannot be filled in, the field is not ready to be collected.

A worked example: cutting a signup form from 14 fields to 8

Sample data: a team plans a newsletter signup form and lists 14 data points. They write the decision each one would change.

Data pointDecision it changesKeep?
EmailWhere to sendYes
First nameGreeting in the messageYes
CountryLanguage and send timeYes
Referral sourceWhich channel to fundYes
Topics of interestWhich content to sendYes
Company sizeWhich case studies to includeYes
Consent timestampProof of permissionYes
Sign-up pageWhich page convertsYes
Last name, phone, birth date, gender, postcode, job titleNone namedNo

Check: 8 kept (email, first name, country, referral source, topics, company size, consent timestamp, sign-up page) and 6 dropped, so 14 − 8 = 6 and 6 ÷ 14 = 43% fewer fields.

Each dropped field is one fewer item to secure, export on request or delete. The decision rule: if no one can name the decision a field changes, remove it from the form, not from the privacy notice.

A second effect to plan for is coverage. If 10,000 visits happen and 62% of visitors agree to measurement, the system records 10,000 × 62% = 6,200. If it counts 186 conversions among them, the observed rate is 186 ÷ 6,200 = 3.0%. That figure describes the consenting visitors, and it is only as good an estimate of everyone as the two groups are alike. Report the coverage next to the rate.

Common mistakes

  • Collecting first, deciding later. Unused fields still need protection and can still be requested by the person they describe.
  • Recording the same thing under different names or formats. Values that cannot be compared are not systematic. See tracking plan.
  • Ignoring the gap between collected and complete. Ad blockers, consent choices and bots all change what the script sees.
  • Mixing test and real data. Internal visits and bots inflate counts unless filtered.
  • Treating raw data as the product. Raw data needs cleaning and definitions before it supports a claim.
  • Leaving the definition unwritten. "Signup" can mean a form view, a submit or a confirmed email. Write which one, or two teams will report different numbers from the same data.
  • Keeping data indefinitely by default. Set a retention period per dataset.

For the principle behind the shortlist above, see data minimization.

Planning collection in TapCub

Use the signup example and put the plan into TapCub.

  1. Write the plan first. All-platform analytics › Data › Tracking plan records the events you intend to collect, including ones not sent yet, with a trigger, properties (name, type, required, example), owner and status from Proposed to Live. Add newsletter_signup and its properties before the developer ships.
  2. Choose how data arrives. The website script, mobile or mini program SDKs, server calls and imports share one project. Autocapture is limited on purpose: form submission records only the form id, name and action, never what was typed.
  3. Set the privacy level. Configuration › Privacy center has collection tiers. Tier 1 is anonymous summary data with no persistent ID; the default is tier 2. For the EEA and UK the default rule requires consent, and without analytics consent collection drops to tier 1, where page views and custom events are still recorded. In China mode nothing is collected before consent. Retention and data subject requests (export and delete) are in the same place. This is configuration, not legal advice.
  4. Verify what arrived. Turn on live verification in the tracking plan to see each event's hits in the last 24 hours and the completeness of required properties, and check All-platform analytics › Data › Data quality for rejects and warnings.
  5. Keep bots out. Known bots and AI crawlers are counted apart, so the rates you read describe people.

TapCub does not decide what you need to collect or whether you have a lawful basis; it records what you plan, and shows how complete it is.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Chen Yu

Technical Engineer

Focuses on tracking code, SDKs, and API integrations, with practical guidance on implementation checks and troubleshooting.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is the definition of data collection?

It is the planned, systematic gathering of information on the variables of interest, using methods such as tracking events, forms, surveys and imports, so that you can answer a question or support a decision.

What are the main types of data collection?

Primary collection, where you gather data yourself, and secondary collection, which reuses data someone else gathered. Data is also described as first-party, third-party or zero-party by who collects it and how.

What should I decide before collecting data?

What decision it will change, which exact fields you need, how they will be recorded, on what lawful basis and notice, and how long you will keep them.

Does consent change the data I collect?

It can. Where consent is the basis and people decline, you record less or only anonymous data, so report coverage next to rates. Check the rules for each region you serve.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

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