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

Analytics Stack: The Six Layers and What a Small Team Needs

An analytics stack has six layers: collection, identity, storage, modeling, reporting and activation. What each does, how each fails, a rule for adding a layer only when a question demands it, three reference stacks by stage and a question audit.

Lucas Hayes Published Nov 28, 2026 13 min read Analytics
Sample data: a 15-person company classifies one quarter's 20 analytics questions. 16 (80%) need no new layer; only the 2 joined-data questions might justify a warehouse export, and only if they recur.Sample data

An analytics stack is the chain of tools that turns user behaviour into decisions, in six layers: collection, identity, storage, modeling, reporting and activation. Most teams need fewer separate tools than vendor lists suggest. Add a layer only when a specific, recurring question cannot be answered with what you have. Below: what each layer does and how it fails, three stacks by stage and a worked audit of 20 questions.

What you will learn

  • Think in six layers, and fix the lowest broken one: collection and identity failures show up as reporting complaints
  • Add a layer only when a written, recurring question cannot be answered and the decision is worth the running cost
  • In the sample audit, 16 of 20 questions needed no new layer: 13 were already answerable and 3 needed a configuration fix

What is an analytics stack?

An analytics stack is the set of tools and processes that turns what people do on your website, app or product into answers you can act on. It is easiest to understand as a chain of six layers, each with one job:

  1. Collection: record events (page views, clicks, sign-ups, purchases) from browsers, apps and servers.
  2. Identity: decide which events belong to the same person, device or company.
  3. Storage: keep the events, for long enough and in a form you can query.
  4. Modeling: turn raw events into agreed definitions: sessions, conversions, active users, revenue.
  5. Reporting: show those definitions as charts, funnels, cohorts and answers.
  6. Activation: act on the results: alerts, audiences, messages, budget changes.

Most articles on the topic list vendors. This one does not, because the useful question is not "which tool for each layer" but "which layers do you need a separate tool for at all?" The rule this guide argues for: add a layer only when a specific, recurring question cannot be answered with what you have. Analytics is one part of a company's wider tech stack and of its martech; the tools a business uses by function are covered in SaaS tools.

The six layers: job, input, output and failure symptom

The failure symptom column matters most. Each layer breaks in a recognisable way, and the symptom tells you which layer to fix before you buy anything.

LayerJobInput → outputWhen it fails, you see
CollectionCapture events reliablyUser actions → event recordsNumbers that differ between tools by more than a few percent; events that stop after a release
IdentityJoin events to the same subjectDevice IDs, logins, company IDs → people and accountsReturning customers counted as new; one customer appearing as three
StorageKeep events queryableEvents → tables with a retention period"We can't look back that far"; slow queries on big ranges
ModelingAgree on definitionsRaw events → sessions, conversions, revenue, active usersTwo dashboards disagree on "active users"; finance and marketing report different revenue
ReportingAnswer questionsModels → charts, funnels, cohortsPeople export to spreadsheets because the reports cannot answer their question
ActivationAct on answersResults → alerts, audiences, messagesInsights that never change a decision; drops noticed a week late

Two patterns are worth knowing. First, problems flow downhill: a collection or identity failure shows up as a reporting complaint ("the funnel looks wrong"), and buying a better reporting tool does not fix it. Second, the layers multiply copies of data: every layer that keeps its own copy is another place to secure, reconcile and delete from.

When to add a layer: the question rule

Before adding a tool, run this check:

  1. Write the question as a sentence. "Which acquisition channel brings customers who are still paying after six months?" is a question. "We need better data" is not.
  2. Check whether it is a configuration fix. Many unanswerable questions are a missing event, a goal that was never set up or an untracked login. Fixing collection is cheaper than adding a layer.
  3. Name the missing layer. Does the question need data from another system (billing, CRM), data older than your retention, a definition your reporting tool cannot express, or an automatic action? Each points to a different layer.
  4. Check that it recurs. A one-off question can be answered with a one-off export. A question asked every month justifies a permanent layer.
  5. Compare the decision value with the running cost. A warehouse adds storage, pipelines, modeling work and someone to maintain them. If the answer only changes a small decision, the layer costs more than it returns.

If a question passes all five, add the narrowest layer that answers it.

QuestionWhat it points toNarrowest fix
"Why don't these two tools agree on sign-ups?"CollectionCheck event definitions and blocked scripts before anything else
"Why do returning customers show up as new?"IdentityIdentify logged-in users with a stable user ID
"Can we compare with the same month two years ago?"StorageRaise retention, or export once a year
"Which channel brings customers who still pay after six months?"Storage plus modeling (joined data)Warehouse export joined to billing, if asked monthly
"Why do two dashboards show different active users?"ModelingDefine the metric once in the shared layer
"Why did nobody notice the drop for a week?"ActivationAdd an alert on that metric

Run step 2 of the question rule first: many questions in the first column are answered by fixing configuration, not by adding a tool.

Three reference stacks by stage

Stage 1: single toolStage 2: tool plus warehouse exportStage 3: warehouse first
Typical teamNo dedicated data personOne analyst or engineer who can write SQLA data team that owns pipelines and models
CollectionThe analytics tool's scripts and SDKsSame, plus server-side events for orders and paymentsEvent pipeline feeding the warehouse; analytics tool reads from it or alongside it
IdentityTool's visitor ID plus login identificationSame; warehouse joins on user ID to billing or CRMIdentity resolved in the warehouse
StorageInside the tool, within its retention periodTool plus periodic raw exports to a warehouseWarehouse is the system of record
ModelingTool's built-in definitions and custom metricsTool for behaviour; warehouse SQL for cross-system metricsModeling layer in the warehouse defines every metric
ReportingTool's reports and dashboardsTool plus a BI tool for joined dataBI on the warehouse; product analytics for exploration
ActivationAlerts and notifications from the toolSame, plus exports to marketing toolsAudiences and syncs generated from the warehouse
Question that triggers the next stage"How does behaviour relate to revenue in our billing system?""Every team needs the same metric definitions across five systems"—

The jump from stage 1 to 2 is usually triggered by one cross-system question, such as linking product behaviour to invoices. The jump from 2 to 3 is triggered by definition drift: when several teams join data in different ways and get different answers, a shared modeling layer is the fix. The choice between warehouse designs is covered in data lakehouse vs data warehouse, and where a customer data platform fits in CDP architecture.

Worked example: a quarter's question audit

Sample data: a 15-person software company keeps a list of every analytics question its team asked in one quarter, then classifies each by what it took to answer.

What answering it neededQuestionsShare
Existing reports in the analytics tool1365%
A configuration fix (missing event, goal not set up, login not identified)315%
Joining analytics data with billing or CRM data210%
Data older than the tool's retention period15%
A custom statistical model (churn prediction)15%
Total20100%

Reading the audit with the question rule:

  • 16 of 20 (80%) need no new layer. 13 are already answerable and 3 need a configuration fix, which is collection work, not a purchase.
  • 2 questions need joined data. Both are about revenue by acquisition channel. If they come up every month and decide the marketing budget, a warehouse export earns its place. If they came up once, a manual export and a spreadsheet are enough.
  • 1 question needs older data. Check the retention setting first; raising retention may be cheaper than a warehouse.
  • 1 question needs a model. One churn prediction a quarter does not justify a modeling layer; a one-off analysis does.

The audit turns "do we need a warehouse?" into "are two recurring revenue-by-channel questions worth the cost of one?" That is a decision someone can actually make.

app.tapcub.com

What 20 analytics questions needed

sample quarter, questions
Existing reports13
Configuration fix3
Joined billing or CRM data2
Data older than retention1
Custom statistical model1
Sample data
Sample data: a 15-person company classifies one quarter's 20 analytics questions. 16 (80%) need no new layer; only the 2 joined-data questions might justify a warehouse export, and only if they recur.

Collection and identity: where most stacks break

The two lowest layers cause most of the trouble higher up.

Collection. Every tag on a page is a collection script, and most sites run many. The HTTP Archive's 2024 Web Almanac found that around 92% of pages use third parties, with a median of 27 third parties per page across the top million sites (66 on the top thousand). Each script that records events adds load time and another copy of user data. Before adding a collection tool, check whether an existing script can record the event.

Identity. Browser identifiers are less durable than many stacks assume. WebKit's Intelligent Tracking Prevention 2.1 (February 2019) caps persistent cookies created through document.cookie at seven days, so any identity that depends on a script-set cookie resets for Safari visitors who return after a week. Two rules follow: identify logged-in users with a stable user ID from your own system, and measure retention on people, not browsers.

Copies and deletion. Each layer that keeps its own copy of personal data is another place to find it when someone asks for deletion. Under GDPR Article 17, a data subject can ask for erasure, and Article 12(3) requires the controller to act on such a request without undue delay and in any event within one month. A stack with the same events in an analytics tool, a warehouse and three marketing tools has five places to delete from within that month.

Common mistakes when building an analytics stack

  • Buying reporting to fix collection. A new dashboard on top of broken events shows the same wrong numbers, faster.
  • Adding a warehouse with no owner. Pipelines break silently. If nobody is responsible for the modeling layer, its definitions drift within months.
  • One tool per question. Each new tool adds a script, a copy of the data and a login. Ask whether an existing layer can answer it first.
  • Defining metrics in reporting tools. If "active user" is defined separately in three dashboards, it will have three values. Define it once, in the lowest layer that all reports read.
  • Skipping identity. Without login identification, retention, LTV and cross-device journeys are all undercounts.
  • Ignoring retention limits. Year-over-year questions fail when the data has already aged out. Set retention to match the longest comparison you need.

Where TapCub fits in an analytics stack

For the company in the worked example, TapCub can be the stage 1 stack and the analytics source in stage 2. Here is what covers each layer and where it stops.

  1. Collection. One website script plus SDKs for iOS, Android, Flutter, React Native and HarmonyOS, and mini-program SDKs, send events into one project with one event and user model. Orders and payments go through server SDKs or POST /api/v1/track with an insert_id, so retries do not double-count. The 3 configuration-fix questions are handled here: All-platform analytics › Data › Tracking plan records the events you intend to collect, with owners and status, and Data quality shows what is actually arriving.
  2. Identity. The website script writes no cookie; the visitor ID is derived on the server. Logged-in users identified with tapcub.login appear in All-platform analytics › Users › People with a behaviour timeline, and tapcub.group('company', …) rolls people up into accounts. Live chat uses the same visitor ID, so support conversations sit on the same person.
  3. Storage and modeling. Events stay queryable within your retention setting (event rows start at 365 days, capped by plan, set in Configuration › Privacy center). All-platform analytics › Behavior › Metrics & SQL defines shared metrics once, by formula or event plus aggregation, and offers a SQL console on event data.
  4. Reporting. Web analytics, funnels, retention, paths, attribution and segments answer the 13 "existing reports" questions; the AI Assistant can answer in plain language and exposes read-only data to your own AI agents through MCP.
  5. Warehouse export. For the 2 joined-data questions, All-platform analytics › Data › Data export creates asynchronous raw exports (events, sessions, persons, autocapture records, consent receipts) as gzip JSONL, kept 48 hours, up to 365 days per job; the free tier cannot export and the Pro tier allows 3 jobs a day. The console creates and tracks the jobs but cannot download the file yet; contact support to have it delivered.
  6. Activation. All-platform analytics › Operations › Monitors checks metrics hourly to monthly and notifies by email, WeCom, DingTalk, Feishu or webhook. It only notifies.

TapCub does not run email campaigns, CRM, ad audiences or a data warehouse of its own. Those stay separate layers, added when a question calls for them.

FAQ

What is a modern analytics stack?

It is usually described as event collection feeding a cloud data warehouse, with a modeling layer that defines metrics in SQL, a BI tool for reporting and reverse-ETL or audience tools for activation. That design suits teams with data engineers. Smaller teams often get the same answers from one analytics tool plus occasional exports.

Do I need a data warehouse for analytics?

Only if you have recurring questions that need data from several systems joined together, longer history than your tool keeps, or shared metric definitions across many tools. List the questions your team asked in the last quarter; if almost all are answerable in your analytics tool, a warehouse adds cost without new answers.

What are the layers of an analytics stack?

Collection (recording events), identity (joining events to people, devices and companies), storage (keeping events queryable), modeling (agreed metric definitions), reporting (charts, funnels and cohorts) and activation (alerts, audiences and actions). Some stacks combine several layers in one tool; others use a separate tool per layer.

How do I choose analytics tools for a small team?

Start from questions, not categories. Pick one tool that covers collection, identity and reporting for your platforms, make sure it identifies logged-in users and can export raw data, and add a second layer only when a recurring question cannot be answered. Fewer tools means fewer scripts, fewer copies of data and fewer conflicting numbers.

Sources

Filed underAnalytics

Was this article helpful?

We use your answers to fix and expand this page.

Lucas Hayes

Data Engineer

Writes about event design, data quality, and collection workflows, with verifiable implementation methods for reliable analytics.

Cover collection to reporting with one script

Web, app and mini-program events in one project, login identification, shared metrics and SQL, monitors and raw export when you need a warehouse.

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