What is a tagging plan?
A tagging plan, or tracking plan, describes what your site or application should measure: what events are collected with what parameters and in what context they should be triggered. It is the contract between three professions: marketing expresses a need for measurement, technical teams implement it, data teams exploit the result.
A usable marking plan consists of five levels:
1. the recipient tool (GA4, Piano Analytics, an advertising agency);
2. the event, with its business title and exact technical name;
3. the expected parameters, each with its type and whether it is mandatory or not;
4. the triggering context: on what type of page, at what stage of the journey;
5. the source of the value: the data layer, an element of the page, the URL.
The fifth level is the one that makes the link with the data layer. It is also most often forgotten.
What is a data layer?
The data layer is the data layer that your site exposes to its measurement tools. Concretely, it is a JavaScript object that describes the current page and the actions of the user. Your tag manager (Google Tag Manager, Tag Commander, Tealium) draws the values from it, which it then sends to your analytics tools and agencies.
For example, here is what the site pushes in the data layer when a purchase is made: window.dataLayer.push ({event: “purchase”, ecommerce: {transaction_id: “T-48213", value:
89.90, value: 89.90, currency: 89.90, currency: “EUR”, currency: “EUR”, items: “EUR”, items: [{item_id: “SKU-1042", price: 89.90, value: 89.90, value: 89.90, currency: “EUR”, currency: “EUR”, items: “EUR”, items: [{item_id: “SKU-1042", price: 89.90, quantity: 1}]}});
The tagging plan says that a purchase must go up in line with its amount. This block is how the site makes it available. If value is missing or changes its name, the tag leaves anyway but without an amount.
What is the difference between a tagging plan and a data layer?
The tagging plan is the intention, the data layer is the delivery. One says what should be measured, the other what the site actually provides.
| Marking plan | Data layer | |
|---|---|---|
| Role | Describe what needs to be measured | Expose data to measurement tools |
| Shape | Spreadsheet or repository | JavaScript object in the page |
| Written by | Marketing and data, with technical teams | Front end developers |
| Read by | All teams | The tag manager |
| Expires when | Nobody updates it | Code evolves without knowing who is reading it |
In the collection chain, they occupy the first two links:
1. the tagging plan fixes what is expected;
2. the data layer exposes the values on the page;
3. the tag manager reads them and builds the hits;
4. the analytics tool or management agency receives them and calculates your indicators.
One does not replace the other. You can have an impeccable data layer and a false tagging plan, if no one wrote what was expected. You can also have an impeccable tagging plan and an incomplete data layer.
This is by far the most frequent case.
Why the tagging plan and the data layer end up diverging
The data layer is powered by the code of the site but it is consumed by marketing and data. Nobody breaks it deliberately, it drifts because those who modify it don't always know who is reading it.
In no case does the site crash. The dashboards continue to fill up, simply with incomplete or false data and the discrepancy is discovered during reporting, sometimes several weeks later. The switch to the server-side adds a blind spot: what starts from the server no longer appears in the browser inspector.
Three blind spots between the marking plan and the data layer
Here are three real differences, detected among our customers. Each shows a different way in which the tagging plan and what the site is sending separate.
1. Unexpected page status
On an e-commerce site, when a product was not available, the data layer of its sheet was almost empty, including for variables unrelated to the product. The microdata of the page (type of page, name, brand and product price) was also not filled in with a risk for SEO. The problem was treated as a matter of priority and fixed in less than a week after the alert.
What it shows: the same page does not send the same data depending on its condition: product available or not, Internet user connected or not. If the plan only describes the nominal case, the other states pass without control.
2. The value is present but false
On another e-commerce site, the add_shipping_info event, sent at the delivery stage, went well with its value and currency parameters. But their values were reversed, the event was present, complete in appearance and yet the information reported was false.
What it shows: verifying that a value exists is not enough. For each parameter, the plan must specify its type, format and source: “decimal number, read in the data layer, ecommerce.value field”.
This allows you to see that a currency has nothing to do in place of an amount.
3. The discrepancy identified before going online
On the credit card order tunnel of an online training organization, the type of page sent to the analytics tool was worth “page” instead of “page tunnel order” intermittently. A tag also went in duplicate. Both discrepancies were identified during pre-production, during the implementation of controls prior to release online.
What it shows: when what is expected is written and checked in pre-production, the discrepancy is seen before reaching production data. This is the principle of Spec-Driven Measurement: the plan is no longer documentation but the expectations against which each production launch is checked.
What's changing for your Analytics Manager teams
: you know where each value comes from. A moving figure can be diagnosed without investigation by looking at what the data layer has actually exposed.
QA: the marking plan becomes the expected one to be tested, template by template like any functional requirement.
Traffic manager: your advertising agencies and your auction algorithms receive complete conversions with their amount and not half-empty events.