Published 26 November 2026 · 6 min read

Who sets up store tracking: a measurement agency, or the developer who built the site?

Both answers to "who will set up our tracking" are half right. The agency knows what to measure and why, but cannot touch the store code. The developer can touch the code, but measures whatever was specified and does not question what the numbers mean. This is about where that line runs and what happens when it is crossed from either side.

    In short
  • The decision is not "agency or developer" but "who defines what is measured" and "who writes it into the code". The first belongs with whoever answers for the result, the second with whoever holds the repository.
  • Tracking built only in the tag manager rests on what the page HTML looks like. A template change or different class names after a deploy can break it without raising a single error — the numbers simply go quiet.
  • The store code owns a data layer with the order identifier, value, currency and items, and a consent state set before the first tag fires. Everything else can be built on top of that.

The line runs between two questions, not between two professions

"What should be measured" and "where will it come from" are two different jobs and each belongs to someone else. The first is a decision: what counts as a conversion in this store, what value to give it, before or after returns, what counts as a new customer. That is decided by whoever answers for the result, usually with the agency. The second is implementation: where that value comes from inside the system and how it reaches the measurement tool. Only someone with access to the code can do that.

Most broken tracking exists because one side did both. An agency without a developer pulls the numbers off the rendered page. A developer nobody gave a conversion definition to writes down whatever was on the invoice, and nobody ever learns that it is revenue with VAT and before returns.

Why tracking built only in the container falls over after a deploy

A tag manager can read the contents of a page. When the store has no data layer, whatever is visible gets used: the text in a particular element, the value inside an element with a certain class, a URL containing the word "thank-you". It works immediately and it is the most common way tracking comes about, because it needs nobody with repository access.

The problem is that this is not an interface. It is an appearance. Change the template, rename the classes or render the price differently and the selector stops matching anything. Nothing crashes, nothing is logged — from that day on it simply sends zero, or worse, the wrong value. It usually surfaces a month later when someone reconciles against orders, if anyone does. This kind of dependency is the first thing we check in a migration, see migrating a store without losing rankings.

What each side controls

The difference is not in skill but in what each has access to and what breaks on their side.

WhatMeasurement agencyStore developer
Conversion and value definitionDefines it and knows whyWrites down what was specified
Data layer in the codeCannot create it, only attach to itCreates it right at the data source
Consent and its orderingConfigures tags, but the default state has to be in the code firstMakes sure the state is set before the first tag
Connection to ad accountsHas access and sees what is missing in themUsually has no access at all
What breaks on a deploySelectors and triggers tied to appearanceLittle, if it measures from the data layer and not from HTML

What belongs in the code whoever does the tracking

  • A data layer on the order. Order identifier, value, currency and items. The identifier matters more than it looks: without it, duplicate conversions cannot be removed and orders cannot be matched to actual payments.
  • One definition of value. Decide once whether it is sent with or without VAT and with or without shipping, then hold to it everywhere. Two different numbers in two tools will never reconcile, and the time goes into working out which one lies.
  • Consent state before the first tag. The default state has to be set before anything measuring starts — otherwise some visits leave before consent is evaluated and go missing in both directions.
  • A server-side endpoint for sending. Once the store can post an order to an address on your own server, tracking stops depending on what the browser manages to do and what an extension blocks. This is the part an agency cannot build without a developer.

Three arrangements that work in practice

  1. The agency specifies, the developer implements. The best combination and the most communication. The specification takes the form of a list of events and fields, not a description of an impression. The developer then builds the data layer at the source and the agency builds tags on top of it.
  2. The developer does both. Works at a smaller scale and under one condition: somebody has to write the conversion and value definition, even if it is the store owner in one paragraph. Without that, what gets measured is whatever was at hand.
  3. The agency does both through the container. Fastest start, shortest life. It makes sense as a stopgap, knowing it will be redone at the next template change — not as the end state.

How to tell it was built badly

  • The numbers do not reconcile with orders in the store. A difference of a few per cent is normal, because windows and attribution models differ. A difference of tens of per cent is not a model, it is a fault.
  • There are selectors in the triggers. When class names or HTML paths show up in the configuration, what is being measured is the look of the page. It works, but not for long.
  • The value did not change after a change in the store. If shipping or VAT is adjusted and the tracking does not move, the value is coming from somewhere other than anyone thinks.
  • Nobody knows who set it up. The most common state in stores that have been through two agencies and one template change. At that point rebuilding the tracking is cheaper than repairing it.

In short: do not ask whether to give tracking to an agency or a developer, ask who writes the definition and who has access to the code. We build the second part, and the first interests us too, because without it there is nothing worth measuring — which is why we treat tracking as part of building a store rather than an add-on, see online stores. When the store runs on a closed platform, that changes what can be added to the code; where exactly is in the article on a content-heavy store on a closed platform.

Contact

Have a project? Write to us.

A few sentences about what you are dealing with is enough. We reply within one working day with questions and a proposed approach.

What do you need? (pick any)

We reply within one working day. No automated sales sequence.

Store tracking: agency or developer? | Developer Online