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

Data lineage: what it is, why it matters and a worked example

Data lineage records where data came from, how it was transformed and where it is used. Levels of lineage, the five main uses, tracing an active-users metric step by step, and how it differs from provenance and observability.

Chen Yu Reviewed by Lucas Hayes Also called data flow lineage Last updated Nov 5, 2026 Glossary

Quick answer

Data lineage is the documented path of data from its sources through every transformation to the reports and systems that use it, at table, column or business-metric level, used for root-cause analysis, impact analysis, audit and compliance.

What is data lineage?

Data lineage is the record of where a piece of data came from, what happened to it along the way, and where it ended up. For a number on a dashboard, lineage answers: which events or source tables feed it, which jobs transformed them, which filters and definitions were applied, and which other reports reuse it.

Lineage can be captured at different levels of detail:

  • Table or dataset level: this dashboard reads table B, which is built from tables A1 and A2.
  • Column or field level: the revenue column comes from order_total minus refund_amount, converted to USD.
  • Business level: the "Weekly active users" metric means people with at least one qualifying event in the last 7 days, owned by the product analytics team.

Why data lineage matters

UseQuestion lineage answersExample
Root-cause analysisWhy did this number change?WAU fell 18%: trace upstream to an app release that stopped sending an event on iOS
Impact analysisWhat breaks if I change this?Renaming the property plan affects 3 dashboards, 1 funnel and a weekly email
Trust and auditCan I rely on this figure?Finance can see that "revenue" excludes refunds and tax
Privacy and complianceWhere does personal data flow?An email field reaches an export job it should not
Cost and cleanupIs anyone still using this?A table with no downstream consumers can be retired

A worked example: tracing a metric

Lineage for "Weekly active users (web)" in a typical analytics stack (sample):

StepSystemWhat happensWhat can go wrong
1Browser scriptSends a pageview or event when a visitor actsScript blocked, not installed on new pages
2Collector endpointValidates and accepts the hitDomain not registered, quota reached, bot filtered
3Event storeWrites the raw event with time, visitor id, propertiesClock skew, property dropped by a validation rule
4Daily person tableRolls events up to one row per person per dayEvent excluded from "counts as active"
5Metric definitionCounts distinct people active in the last 7 daysDefinition changed, window or time zone changed
6Dashboard and reportDisplays the metric and compares periodsWrong filter saved on the dashboard

When WAU drops, walk the table from the bottom up: was the definition or filter changed? Did the daily roll-up exclude something? Did fewer raw events arrive, and if so, were they rejected at the collector or never sent? Each step either explains the drop or rules itself out.

Data lineage vs related ideas

  • Data provenance is narrower: the origin and history of a specific record, often for audit or science. Lineage covers the whole flow.
  • Data dictionary defines what each field means; lineage shows how fields connect.
  • Data observability monitors freshness, volume and schema in production; lineage tells you where an anomaly came from and what it affects.
  • Data governance sets rules and ownership; lineage is one of the tools that makes those rules checkable.

How lineage is captured

  1. Parsing code and queries. SQL and transformation code reveal which tables and columns feed which.
  2. Reading platform metadata. Warehouses, orchestration tools and BI tools log reads and writes.
  3. Declaring it in models. Transformation frameworks build a dependency graph from the models you write.
  4. Documenting it manually. For tracking, the tracking plan is the upstream end of lineage: which event comes from which screen, platform and release.

Automated lineage is accurate for code it can parse; it misses manual steps such as spreadsheets and copy-paste. Plan for both.

Common mistakes

  • Treating lineage as a diagram project. A graph nobody uses during incidents goes stale in weeks. Start from the three or four metrics leadership looks at.
  • Stopping at the warehouse. Many data problems start at collection: tracking code, consent, blocking. Include the tracking layer.
  • No owners. Every node in the lineage needs a person or team to ask.
  • Ignoring definitions. Two dashboards can share every table and still disagree because one counts sessions and the other counts people.

In TapCub

TapCub does not draw a lineage graph, but it exposes the steps where analytics data is most often lost. The tracking plan records each event's platforms, trigger, properties, owner and status from proposed to live. The data quality page shows ingestion warnings, collector rejects by reason (domain mismatch, exclusion rule, quota, rate limit, invalid payload, bots), blocked properties and events that stopped arriving. When a metric moves unexpectedly, those two pages cover the top of the lineage table above. For the rest of a pipeline, see data pipeline and data quality.

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 data lineage in simple terms?

It is the family tree of a number: which sources it came from, what was done to it and where it is used.

What is the difference between data lineage and data provenance?

Provenance is the origin and history of a specific record; lineage maps the whole flow of data between systems, tables and reports.

Why is data lineage important?

It lets you find why a metric changed, see what will break before you change something, prove where figures come from and track personal data.

How do you start with data lineage?

Pick the few metrics leadership relies on, trace each from collection to dashboard, name an owner for every step and keep the tracking plan current.

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