Skip to main content

Samarth Analytics

Event Schema Versioning: Changing a Tracking Event Without Breaking Downstream Reports

By Samarth Analytics · Published · Updated · Analytics Engineering · 7 min read

Summary: A tracking event is an interface. GA4 reports, audiences, ad platform conversions, warehouse models and dashboards all depend on its name, parameters and meaning, so a well-intentioned rename or a change in units can break several of them at once. This guide explains how to tell breaking from non-breaking changes, how to version event schemas, the expand-and-contract pattern for migrations, and how to handle a change in GA4 and in the warehouse.

Event Schema Versioning: Changing a Tracking Event Without Breaking Downstream Reports

Tracking events are an API

When a developer renames a function, the compiler or the tests tell them what broke. When someone renames a tracking event, nothing tells anyone. The GA4 key event stops counting, an audience stops filling, a Google Ads conversion goes quiet, a dbt model returns nulls, and a dashboard drops to zero - often days apart, discovered by different people, and rarely traced back to the same change.

The root problem is that tracking events are treated as implementation details when they are really interfaces with many consumers. Treating them like an API - with a contract, versions and a migration process - is the core idea behind the data contracts approach, and it is the most effective way to stop well-meant changes breaking reports. This post focuses on one practical piece of that: how to change an event safely.

Breaking and non-breaking changes

Start by classifying the change. Most changes fall clearly into one of two groups.

Non-breaking changes add something without altering what already exists:

  1. Adding a new optional parameter.
  2. Adding a new event.
  3. Adding a new allowed value to a parameter whose consumers handle unknown values gracefully.

Breaking changes alter something consumers rely on:

  1. Renaming an event or a parameter.
  2. Changing a parameter's type, such as a price sent as a string becoming a number.
  3. Changing units or meaning, such as a value that used to exclude tax and now includes it.
  4. Removing an event or a parameter.
  5. Changing when an event fires, such as moving a purchase event from the confirmation page to a payment callback.

The last two groups are the dangerous ones, because they can pass every technical check while silently changing what the numbers mean.

Put the version in the payload

The simplest and most useful habit is to include a schema version with every event, either as a parameter on the event or as a field in the data layer that tags pass along. When a breaking change ships, the version increments.

In GA4 itself, you only need to register the version as a custom dimension if analysts will use it in the interface. In the BigQuery export it is available as an event parameter regardless, which is where it matters most: downstream models can branch on the version, tests can flag unknown versions, and anyone investigating a change in the numbers can see exactly when the new version started arriving. The specification itself should record each version's fields and their meaning, as described in executable analytics specs.

Expand and contract

Breaking changes are best made in stages, a pattern borrowed from database migrations:

  1. Expand. Add the new version alongside the old one. For a rename, send both the old and the new event, or the new parameter alongside the old one.
  2. Dual-run. Keep both for long enough that every consumer can be migrated and compared, typically two to four weeks.
  3. Migrate consumers. Update GA4 key events, audiences, ad platform conversions, warehouse models and dashboards to use the new version, checking each against the old.
  4. Contract. Stop sending the old version, and remove it from the specification.

Dual-running costs a little extra data for a few weeks. It buys a period in which every consumer can be compared side by side, which is the only reliable way to catch the consumers nobody remembered.

Warning: Do not dual-run conversion events in ad platforms with both versions counted as primary conversions. Keep the new version secondary until the old one is retired, or bidding will see doubled conversions.

Handling the change in GA4

In GA4, an event change touches several places that are easy to forget:

  1. Key events are configured by event name, so the new name must be marked as a key event and the old one unmarked at the switch.
  2. Audiences and their conditions refer to event names and parameters, and they do not update themselves.
  3. Custom dimensions and metrics are registered by parameter name.
  4. Explorations, comparisons and saved reports built on the old name stop showing data.
  5. Annotations should record the date of the switch, as described in dashboard annotations.

GA4 can also modify or create events at processing time in the interface, which can bridge a rename while the site catches up. Use it as a temporary bridge, documented clearly, rather than a permanent home for business logic, because logic hidden in property settings is invisible to everyone working from the specification.

Handling the change in the warehouse

The warehouse is where versioning pays off most. A staging model can normalise every version of an event into one consistent shape: map the old event name to the new one, cast types, convert units, and output a single clean table that downstream models use. Consumers then never see the change at all. The modelling layer described in GA4 to dbt is the natural place for this.

Add tests that fail on unknown schema versions and on unexpected parameter types, so a change shipped without notice is caught the day it arrives rather than when a dashboard looks wrong. Alerting on data freshness and schema changes covers the monitoring side.

A worked example: price that suddenly includes tax

A common real case: the development team changes the value sent with purchase events from a pre-tax to a post-tax amount, because finance asked for it in another system. Nothing breaks technically. Revenue in GA4 jumps by the tax rate overnight, ROAS improves in every report, and Smart Bidding receives larger conversion values without any change in actual sales.

With versioning, the change looks different. The new version sends both value (unchanged, pre-tax) and a new value_incl_tax parameter during the dual-run, with the schema version incremented. Consumers are reviewed: GA4 and the ad platforms stay on pre-tax value, finance's warehouse model switches to the new parameter. Nothing jumps, and the decision about which value each consumer should use is made explicitly rather than discovered later.

The change process

Make every breaking change follow the same short process: a change request against the specification, a list of known consumers with an owner for each, a timeline covering expand, dual-run, migrate and contract, and an announcement to everyone who reports on the affected events. The GA4 event taxonomy post covers the naming discipline that reduces how often renames are needed at all.

Deprecations deserve their own notice. When the old version is scheduled for removal, say so at the start of the dual-run with the exact removal date, repeat it a week before, and confirm it on the day. Consumers that nobody listed - a forgotten spreadsheet, an agency's report, a partner's feed - usually surface only when someone hears that something they use is going away. A clear date gives them the chance to speak up before the old version disappears rather than after.

Final thoughts

Tracking events have more consumers than any one person can remember, which is why changing them casually breaks reports in ways nobody connects. Classify changes, put a schema version in the payload, migrate with expand and contract, normalise versions in the warehouse, and announce what changes and when. The extra effort is small; the reports that keep working are worth it.

If you want your tracking events managed as a proper interface, our analytics engineering team can help, and a free audit will show which of your events have already drifted.

Topics: analytics QA, dbt, ga4 events, data governance, analytics engineering

More articles on the Samarth Analytics blog · Markdown version of this article