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

Data Mapping: What It Is and Why It Matters

Data mapping matches source fields to target fields and records the rule for each. A worked CSV mapping with coverage and load rate, five rule types, and how a map feeds GDPR records of processing.

Su He Reviewed by Ethan Brooks Also called source-to-target mapping Last updated Nov 23, 2026 Glossary

Quick answer

Data mapping matches each field in a source, such as an old export or a tracking call, to a field in a target and writes the rule that carries the value across. Its purpose is to make data arrive intact, in the right place and with the same meaning, and to show what personal data goes where.

What is data mapping?

Data mapping is the process of matching each field in a source (an old system, a file, a form, a tracking call) to a field in a target (a database, an analytics project, a report), and writing down the rule that carries the value across. A mapping answers four questions for every field: where it comes from, where it goes, how its value is changed on the way, and whether it should travel at all.

The purpose is simple to state. Data mapping makes data arrive intact, in the right place, with the same meaning, so that numbers computed on the target can be trusted and so that you can say, field by field, what you hold and why. It is a standard step before any data integration, migration or import, and it is the practical groundwork for a written event schema when a team agrees what each tracking event must contain.

Why does data mapping matter?

Four jobs depend on it:

JobWhat mapping prevents
Migration and importColumns landing in the wrong field, or being silently dropped
Integration between systemsThe same word meaning two things (a "user" that is a visitor in one and a paying account in the other)
Tracking and analyticsEvents and properties named differently by each developer, which fragments reports
Privacy recordsNot knowing which personal data goes where, which makes a record of processing impossible to write honestly

The last one is easy to overlook. A list of fields with owners, purposes and destinations is exactly the raw material that privacy law asks you to be able to produce, as the later section shows.

Worked example: mapping a CSV export into an analytics project

Sample data: a team moves ten thousand rows of old event data from a previous tool's CSV export into a new analytics project. The export has seven columns.

Source columnExample valueTarget fieldRulePersonal data?
ts1730000000timeConvert seconds since 1970 to a date and timeNo
evtSignup Clickevent nameRename to the agreed name signup_clickedNo
uidu_48213user idCopy as it isYes: identifies a person
pg/pricingpathCopy as it isNo
srcGoogleutm_sourceLower-case to googleNo
medCPCutm_mediumLower-case to cpcNo
emaila@example.com(not imported)Drop: not needed for this analysisYes

Counting the mapping itself gives numbers you can check:

  • Source fields: 7. Mapped to a target: 6. Deliberately excluded: 1 (email). Source coverage = 6 ÷ 7 = 85.7%, and the missing one is a decision, not an accident.
  • Target required fields: time, event name, user id, path, utm_source, utm_medium = 6. All have a source, so required coverage = 6 ÷ 6 = 100%.
  • Rows: 10,000 in the file. After the import, suppose 9,420 rows loaded and 580 failed because the ts value could not be read as a time. Load rate = 9,420 ÷ 10,000 = 94.2%, and the 580 failures (5.8%) point at one specific rule to fix.

A mapping you can describe in numbers like these can be reviewed. One written only in someone's head cannot.

What kinds of mapping rule are there?

Every row in a mapping uses one of five rule types:

Rule typeWhat it doesExample
DirectCopies the value unchangedpg to path
TransformChanges format, case or unitts seconds to a date and time
LookupReplaces a value using a tablefb to facebook
Split or mergeOne field becomes several, or several become onefull_name to first and last name
Drop or hashNot carried over, or carried only in a protected formemail dropped, or a hash used as an identifier

Naming the rule type for each row makes review quick: reviewers check the transforms, lookups and drops, and trust the direct copies.

How does data mapping support privacy records?

Under the EU's General Data Protection Regulation, a controller must keep a record of processing activities. Article 30(1) lists what it must contain: the controller's contact details, the purposes of the processing, a description of the categories of data subjects and of personal data, the categories of recipients, transfers to third countries, where possible the time limits for erasure, and where possible a description of security measures (Regulation (EU) 2016/679, Article 30, checked 2026-11-22). The UK regulator's guidance describes the same items for controllers, with retention and security as "if possible" items (ICO, checked 2026-11-22).

A data map is the working material for that record. The mapping table above already holds most of what the record needs:

Article 30(1) itemWhere the mapping gives it to you
Purposes of processingThe reason each field is imported (for example product analytics)
Categories of personal dataThe "personal data?" column: user id yes, email yes
Categories of data subjectsWho the rows describe (visitors, account holders)
Categories of recipientsWhich systems the target field is shared with or exported to
Transfers to third countriesWhere the target system stores the data
Time limits for erasureThe retention setting on the target

A data map is not the record itself: the record is a formal document with the legally required wording. But if the map exists, the record is a few hours of writing; if it does not, someone must reconstruct it from memory. For the record itself, see record of processing activities.

How do you do a data mapping exercise?

  1. List the source fields from the real data, not from documentation. Pull a sample of rows.
  2. Define the target fields and mark which are required.
  3. Write one rule per source field using the five rule types, and one reason for each drop.
  4. Mark personal data and decide what is dropped, hashed or kept.
  5. Run a small sample (for example 100 rows) and compare source and target by hand.
  6. Measure the load: source coverage, required coverage and load rate, as in the example.
  7. Keep the mapping with the project, so that the next import starts from it.

What mistakes make a data map fail?

  • Mapping by column name only. Two columns called date can hold different time zones.
  • Forgetting units and formats. Seconds versus milliseconds shifts every date by decades.
  • Dropping fields silently. Every excluded field needs a written reason.
  • Skipping the personal data column. The map then cannot support a privacy record.
  • Leaving it out of date. A map that was right last year, before a new field was added, is misleading.

How does mapping work in TapCub?

Take the CSV example. TapCub has a mapping step in its import and a place to define the target.

  1. Define the target. In All-platform analytics › Data › Tracking plan, record the events you intend to collect: event name, display name, category, platform, trigger and properties (name, type, required, description, example), with an owner and a status (Proposed, Developing, Accepting, Live or Deprecated). That is your target schema. Turning on Live verification (24 h) shows hits and completeness of required properties.
  2. Map the columns. In All-platform analytics › Data › Data import, choose CSV events. The page shows the first 20 rows and guesses a mapping from column names such as time, event_name, user_id and utm_source. Target fields are time, event name, user id, path, full URL, referrer, user agent, IP, the three UTM fields and "property". Columns mapped to property are merged into event properties with numbers and true or false converted to those types; unmapped columns are ignored. Map at least the event name or the path or URL.
  3. Watch the edge cases. With no time column, the import time is used; a mapped time that cannot be parsed makes that row fail (the 580 rows in the example). With no user id mapped, each row becomes an anonymous visitor hashed from its content, so rows cannot be merged into one person. Imports of user properties need at least one of user id, email or phone, and email and phone are hashed before they are bound as identities.
  4. Keep personal data out on purpose. Do not map columns you do not need. Each file is limited to 100,000 rows.
  5. Handle the privacy side. Configuration › Privacy center holds collection tiers, address truncation, retention and data subject requests. TapCub does not produce your Article 30 record; use your mapping table as the starting point for it.

Sources

Was this explanation clear?

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.

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 purpose of data mapping?

To make data move between systems accurately: each source field has a target field and a rule, so values arrive in the right place with the same meaning. It also shows what personal data goes where, which supports a record of processing.

What is an example of data mapping?

Mapping a CSV export into an analytics project: ts to time with a conversion, evt to event name with a rename, src to utm_source in lower case, and email dropped. In the sample, 6 of 7 source columns are mapped and 1 is excluded on purpose.

Is a data map the same as a record of processing activities?

No. A data map is the working diagram of fields and flows; the record of processing is the formal document GDPR Article 30 requires. The map supplies most of its content: purposes, categories of data, recipients, transfers and retention.

How do you check that a mapping worked?

Measure source coverage, required-field coverage and load rate, then compare a small sample by hand. In the example, 9,420 of 10,000 rows loaded (94.2%), and the 580 failures pointed to one time-format rule to fix.

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