Skip to content
New: GA4 dashboards, server-side conversions to every ad platform, Consent Mode v2 generation, and publish approvals.See what shipped
tracking quality

Anomaly detection for tracking: why per-event baselines beat a total-events alert

A 20 percent drop in purchase events is an emergency. A 20 percent drop in total events is Tuesday. How to build baselines that page you for the first and stay quiet for the second.

3 min readBy TagEasy
All posts

Most "tracking monitoring" is a single threshold on total event volume, and it is useless twice over. It fires every weekend, because traffic is lower on weekends, and it stays silent when the purchase event dies, because purchases are a rounding error in total event count. Here is how to build alerts that behave.

One baseline per event

Each event has its own rhythm. page_view is huge and smooth. purchase is small and spiky. generate_lead might be twelve a day. A baseline that averages all of them is dominated by page views and tells you nothing about the events that matter.

Compute the baseline per event name: the last 14 days of daily counts, compared day-of-week to day-of-week so Saturday is judged against Saturdays. Then compare today against that baseline.

Three kinds of anomaly

  • Drop. Today's count is well below the baseline. The tag broke, consent changed, a template lost its snippet.
  • Spike. Today's count is well above. A duplicate tag, a bot, a loop firing the event on every scroll.
  • Silence. The event has fired every day for two weeks and has not fired at all today. This is the most important one, because a zero never shows up as a percentage drop until the day is over.

Silence deserves its own, earlier check: if an event that normally fires hourly has not fired in three hours, do not wait for the daily comparison.

Thresholds that do not cry wolf

Low-volume events need wider thresholds. Twelve leads a day is normal and nine is normal too; nine is a 25 percent drop. A threshold scaled to the event's own variance, rather than a flat percentage, keeps the lead-gen team from muting the alert in its first week. For very low volumes, alert on silence rather than on percentage.

Allow a snooze with an expiry. During a migration or a planned campaign pause, the right answer is "hush this for three days", not "turn it off", because the alert that is turned off is never turned back on.

Funnels catch what per-event alerts miss

Every event's volume can look fine while one step's conversion rate falls off a cliff. If add_to_cart holds steady and begin_checkout holds steady but the ratio between them drops by half, something broke between the two, usually a cart drawer change. Step-to-step conversion alerts sit on top of per-event alerts and catch this case.

What to send with the alert

The alert that just says "purchase dropped 41 percent" starts a hunt. The alert that says "purchase dropped 41 percent, started 3 days ago, the GTM container was published 3 days ago, here is the diff" ends one. Attach the recent changes: container versions, detected script changes, consent tool changes. An AI summary that reads those and names the likely cause is a convenience; the changes themselves are the evidence.

Where the alert goes

Email is where alerts go to be read on Monday. Send them where the team already looks: Slack or Teams for marketing, PagerDuty for anything revenue-critical with an on-call rotation. Deduplicate so a broken site sends one alert, not one per event.

FAQ

What is a good threshold for a tracking anomaly alert?

It depends on the event's volume. For high-volume events, a 20 to 30 percent deviation from the same weekday's baseline is reasonable. For low-volume events, alert on silence (no events in a window where there normally are) rather than on percentage.

Why do my total-events alerts fire every weekend?

Because traffic is lower on weekends and the alert compares against a flat average. Compare each day against the same weekday in previous weeks instead.

Can an anomaly alert tell me what broke?

On its own, no. Paired with a record of what changed, container publishes, new scripts detected, consent tool updates, it can point at the likely cause, and that is what shortens the fix from days to minutes.

TagEasy runs per-event baselines, silence checks and funnel alerts on every site it monitors. Start with a free audit at tageasy.io/check.

Keep reading

Related posts

See where your tracking stands

Run the same 17-check audit referenced in this post against any URL. No signup, results in seconds.