In Short
- Four layers hold a framework together: goals, metrics, events and tools.
- A metric dictionary and an event naming pattern prevent most reporting arguments.
- Change control matters as much as design: every new event needs an owner and a reviewer.
- Start with one product or site and reuse the structure, instead of designing for every case at once.
Teams rarely lack data. They lack a shared structure for it, so every new campaign adds its own event names, every analyst keeps a private spreadsheet and the dashboard from last year no longer matches the site. Good digital analytics consulting replaces that drift with a framework that new people can learn in an afternoon.
The version below is the one I reuse across retail and software clients. It has four layers, a naming rule, a dictionary and a change process. You can set it up with a spreadsheet before you buy any tool.
The Four Layers and How They Connect
Think of the framework as a chain. A business goal is measured by metrics, metrics are built from events and events are collected by tools. If you can trace any chart down the chain, you can fix it. If you cannot, you have a number nobody owns.
| Layer | Contains | Owner | Changes |
|---|---|---|---|
| 1. Goals | Business objectives and the decisions that support them | Business lead | Yearly |
| 2. Metrics | Named measures with formulas, targets and segments | Analytics lead | Quarterly |
| 3. Events | Tracked actions, parameters and identity rules | Analytics engineer | Per release |
| 4. Tools | Analytics, tag manager, warehouse, reporting tool | Analytics lead and IT | Rarely |
The layers change at different speeds. Goals move slowly and events move with every release, which is why the framework puts a dictionary between them and keeps events behind a naming rule.
Layer 1: Goals That Tie to Decisions
Write each goal as a sentence that includes a decision: "Grow trial-to-paid conversion, so we decide which onboarding steps to fix first." A goal with no decision attached tends to produce a chart that is admired and never used. Keep the list to five or six. When you want the full process for choosing and ordering them, my digital analytics strategy guide covers it step by step.
Layer 2: A Metric Dictionary That Ends Arguments
Create one table with a row per metric. Columns: name, plain-language meaning, exact formula, inclusions and exclusions, owner, source and date of last change. Put it somewhere everyone can read and nobody can edit without review.
The dictionary also helps you say no. When someone asks for a new metric, the first question is which goal it serves and what its formula is. If you cannot fill the row, you are not ready to track it. My list of digital analytics metrics gives nine candidates with formulas you can copy into the dictionary.
Layer 3: Events With a Naming Rule
Event naming is the layer where frameworks succeed or collapse. Choose one pattern, such as object then action in lowercase with underscores: cart_viewed, checkout_started, trial_activated. Do not mix in verbs first, page names or tool names.
Keep a second table, the tracking plan, with one row per event: name, trigger, parameters, example values, owner and the metrics that use it. Developers read it before they build, and analysts read it before they report. The audit of the existing setup, which I describe in my guide to a digital analytics audit, often starts by comparing a live site against this table.
Parameters Worth Standardizing
A short list of shared parameters pays off across every event: currency, item ID, item category, plan name, login state and page template. Name them once and reuse them. Teams that invent parameters per feature end up with five names for product category.
Identity and Consent
Decide how you identify people: anonymous device, login ID or both. Document how consent choices change collection, so analysts know why numbers shrink when a banner changes. Check regional rules that apply to you with your legal adviser.
Layer 4: Tools Chosen Last
With the other layers defined, tool choice gets easier because you know what you need: which identity model, how much raw data access, how many users read reports. A tag manager and one analytics tool cover most small setups. A warehouse and a BI tool come in when you need to join web data with orders and CRM. For a side-by-side comparison, see my ranking of digital analytics tools.
Resist the urge to adopt a new tool to fix a framework problem. In several client reviews, I have seen a platform migration reproduce the same naming mess in a new interface, at a cost of months.
A Short Worked Example for an Online Store
Here is how the layers fit together for a store that sells outdoor gear. The goal is to grow profitable repeat purchases, so the team can decide how much to spend on email and loyalty offers. That sits in layer one, with the decision written next to it.
In layer two, the store lists four metrics: repeat purchase rate within ninety days, revenue per email send, discount share of revenue and customer acquisition cost. Each gets a formula and an owner in the dictionary. Repeat purchase rate is customers with a second order within ninety days of the first, divided by customers with a first order, excluding refunded orders and wholesale accounts.
In layer three, those metrics need events: order_completed with a customer ID and discount amount, email_clicked with a campaign ID and account_created. Each appears in the tracking plan with its trigger and parameters, and a developer builds from the plan.
In layer four, orders flow from the shop platform to a warehouse, and email data flows in through an export. A dashboard shows the four metrics with the dictionary linked underneath. When the repeat rate drops, the analyst checks layer three first, then layer two, and finds that a change in the checkout had stopped passing the customer ID. That kind of trace takes twenty minutes with a framework and most of a week without one.
Change Control That Keeps It Alive
A framework decays when releases add events without telling anyone. Put three rules in place and it holds up:
- Every new event is proposed in the tracking plan before it is built.
- A second person reviews names and parameters against the naming rule.
- A release note records which events changed, so a chart jump can be explained.
Add a quarterly review where you remove events that no metric uses. Unused events cost money in storage and attention, and they make the plan harder to read.
Who Does What Inside the Framework
A framework without named roles stays a diagram. Four roles cover it, and in a small company one person may hold two of them. The business lead owns the goals and decides what the numbers are for. The analytics lead owns the dictionary, the review process and the quality checks. The analytics engineer owns the tracking plan and the tags. The analyst answers questions and flags where the data fell short.
The handoffs matter more than the titles. A developer should never build an event that is not in the plan, and an analyst should never report a metric that is not in the dictionary. When either rule breaks, ask why. Usually the process was too slow, and the fix is a faster review, not a stricter rule. I have seen teams cut the review for a new event to one working day, and the number of undocumented events dropped sharply afterward.
New joiners are the best test of the roles. Ask a colleague who started last month where they would look to learn what "active customer" means. If the answer is a person and not a page, the dictionary is not doing its job yet.
Keep the weekly cost of all this small. A thirty-minute meeting every two weeks to review proposed changes is enough for most teams. Anything more and people begin to route around it.
A Formula for Scoring Framework Maturity
To see where you stand, score each layer from zero to three: zero means nothing documented, one means documented but out of date, two means current and unused, three means current and used in decisions. Sum the four scores.
| Total | Reading | Next step |
|---|---|---|
| 0 to 3 | Ad hoc tracking, little shared knowledge | Write the goals and the dictionary first |
| 4 to 7 | Partial structure, drift likely | Add the tracking plan and a review step |
| 8 to 10 | Solid structure, use is uneven | Connect reports to decisions in meetings |
| 11 to 12 | Mature and used | Retire unused events, keep the review cycle |
Most teams I meet score between four and seven. The jump to eight comes from using the dictionary in meetings, which is a habit more than a project. When you decide which numbers get targets, the guide to digital analytics KPIs gives a shortlist to bring to that meeting.
How to Choose Your Starting Scope
Do not build the framework for the whole company at once. Pick one product or site, run the four layers for it and reuse the structure for the next. Check your candidate against these points:
- It has a clear business owner who will use the reports.
- It has enough traffic to produce a stable signal within a week.
- Its tracking is accessible to a developer you can schedule.
- It is important enough that leadership will notice the improvement.
If you want help with the first pass, an experienced consultant can set up the dictionary and plan in a few weeks and hand them to your team.
Questions About Digital Analytics Frameworks
What Is a Digital Analytics Framework?
It is the structure that connects business goals to metrics, metrics to events and events to the tools that collect them. A good framework lets a new analyst trace any number on a dashboard back to a goal and forward to the tag that produces it.
How Is a Framework Different from a Strategy?
A strategy says what you will do and in which order. A framework is the reusable structure you use to do it, with layers, naming rules and ownership. You write the strategy once a year and use the framework every day.
Can a Small Team Use a Framework?
Yes, and small teams benefit most, because they cannot afford rework. A one-page version with four layers, a naming pattern and a metric dictionary is enough for a team of two or three.
How Many Layers Should a Framework Have?
Four is a good number: goals, metrics, events and tools. Fewer layers skip the link between business questions and tracking. More layers usually mean you have split one layer into steps that people will not maintain.
Does a Framework Work for Apps as Well as Websites?
Yes. The layers are the same. The events differ, because apps have screens, sessions that pause and background activity, and the identity model usually relies on logins more than on cookies.
Who Maintains the Metric Dictionary?
The analytics lead owns it, and each metric has a business owner who agrees on the definition. Changes go through a short review, and every change gets a date, so you can explain a jump in a chart that comes from a definition update.
How Long Does It Take to Put a Framework in Place?
Expect four to eight weeks for one product with part-time effort: two weeks to agree goals and metrics, and the rest to align tracking and documentation. Adding more sites is faster, because the structure is reusable.
Important: nothing in this article is legal, financial or tax advice. All figures are estimates from typical projects, so verify them with your own providers and advisers.
Was this useful?
We appreciate the feedback.
Rosalind Tierney
Rosalind leads the Flume editorial team and works with our consultants to turn real client projects into practical guides on dashboards, tracking, experimentation and machine learning. Before joining Flume, she spent 11 years in analytics and business intelligence roles. She has since edited more than 300 articles on analytics practice and reviewed dashboards, tracking plans and analytics audits from over 100 client projects. She is based in Minneapolis, Minnesota.