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:
| Job | What mapping prevents |
|---|---|
| Migration and import | Columns landing in the wrong field, or being silently dropped |
| Integration between systems | The same word meaning two things (a "user" that is a visitor in one and a paying account in the other) |
| Tracking and analytics | Events and properties named differently by each developer, which fragments reports |
| Privacy records | Not 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 column | Example value | Target field | Rule | Personal data? |
|---|---|---|---|---|
ts | 1730000000 | time | Convert seconds since 1970 to a date and time | No |
evt | Signup Click | event name | Rename to the agreed name signup_clicked | No |
uid | u_48213 | user id | Copy as it is | Yes: identifies a person |
pg | /pricing | path | Copy as it is | No |
src | utm_source | Lower-case to google | No | |
med | CPC | utm_medium | Lower-case to cpc | No |
email | a@example.com | (not imported) | Drop: not needed for this analysis | Yes |
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
tsvalue 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 type | What it does | Example |
|---|---|---|
| Direct | Copies the value unchanged | pg to path |
| Transform | Changes format, case or unit | ts seconds to a date and time |
| Lookup | Replaces a value using a table | fb to facebook |
| Split or merge | One field becomes several, or several become one | full_name to first and last name |
| Drop or hash | Not carried over, or carried only in a protected form | email 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) item | Where the mapping gives it to you |
|---|---|
| Purposes of processing | The reason each field is imported (for example product analytics) |
| Categories of personal data | The "personal data?" column: user id yes, email yes |
| Categories of data subjects | Who the rows describe (visitors, account holders) |
| Categories of recipients | Which systems the target field is shared with or exported to |
| Transfers to third countries | Where the target system stores the data |
| Time limits for erasure | The 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?
- List the source fields from the real data, not from documentation. Pull a sample of rows.
- Define the target fields and mark which are required.
- Write one rule per source field using the five rule types, and one reason for each drop.
- Mark personal data and decide what is dropped, hashed or kept.
- Run a small sample (for example 100 rows) and compare source and target by hand.
- Measure the load: source coverage, required coverage and load rate, as in the example.
- 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
datecan 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.
- 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.
- 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_idandutm_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. - 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.
- Keep personal data out on purpose. Do not map columns you do not need. Each file is limited to 100,000 rows.
- 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
- European Parliament and Council. Regulation (EU) 2016/679 (GDPR), Article 30 — records of processing activities, paragraph 1(a) to (g). Checked 2026-11-22.
- Information Commissioner's Office. What do we need to document under Article 30 of the UK GDPR? — controller documentation items. Checked 2026-11-22.
Was this explanation clear?
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.