Analytics You Can Trust: Event Design, Consent and the Numbers That Lie
Most analytics setups collect plenty of data and answer very few questions. How to design events around decisions, handle consent without losing the plot, and spot the dashboards that are quietly wrong.

I once audited an analytics setup that tracked 340 distinct events. The marketing team could not answer a simple question: how many people who read a pricing page went on to start a trial? The event existed. It fired twice on some browsers, never on others, and was named three different ways across two years of releases.
More data is not better analytics. Better questions are.
Start from decisions
Before adding a single event, write down the decisions the data is supposed to inform:
- Which acquisition channels bring customers who stay?
- Where do people abandon signup?
- Which content leads to product interest?
Each decision maps to a small set of events. If an event does not support a decision, do not track it. You can always add it later; removing a polluted event is much harder.
Name events like an API
Pick a convention and enforce it. I use object_action in lowercase:
signup_started
signup_completed
trial_started
article_read_complete
pricing_viewedProperties carry the variation, not the event name. plan_selected with a plan: "pro" property, never pro_plan_selected and basic_plan_selected as separate events.
Keep the event list in a shared tracking plan — a simple spreadsheet works — with the name, trigger, properties, and owner. Every new event goes through it.
Measure what you actually care about
For a content site, page views are a weak signal. "Read to the end" is a far better one. A simple implementation fires an event when the reader scrolls past the last paragraph and has spent a reasonable minimum time on the page:
const end = document.querySelector(class="text-code-string">"[data-article-end]");
const started = Date.now();
new IntersectionObserver(([e], obs) => {
if (e.isIntersecting && Date.now() - started > 30_000) {
track(class="text-code-string">"article_read_complete", { slug });
obs.disconnect();
}
}).observe(end!);The time threshold filters out people who scroll straight to the bottom looking for something.
Consent is part of the design
In many regions you need consent before setting non-essential cookies or tracking identifiable behaviour. Do it properly:
- Load tracking scripts only after consent, not before
- Make "reject" as easy as "accept"
- Consider cookieless, aggregate measurement for basic traffic numbers
Your numbers will drop when consent is implemented honestly. That is not data loss; it is the end of counting people who never agreed to be counted. Adjust your expectations and compare trends, not absolutes.
The numbers that lie
| Symptom | Likely cause | |---|---| | Sudden traffic spike from one city | Bot traffic or a monitoring service | | Conversion rate jumps after a release | Event now fires twice | | "Direct" traffic growing steadily | Lost referrer data — redirects, apps, missing UTM tags | | Bounce rate near zero | Analytics script loaded twice | | Revenue in analytics ≠ revenue in billing | Ad blockers, refunds, client-side tracking failures |
Billing is the source of truth for money. Analytics is a sampled, imperfect view of behaviour. If the two disagree, billing wins, and you reconcile the trend.
Tag your links
UTM parameters on every campaign link — newsletters, social posts, partner placements. Agree on lowercase values and a fixed list of sources and mediums. "Newsletter", "newsletter" and "email" become three channels in your reports otherwise.
Review quarterly
Every quarter, check each event in the tracking plan still fires, still means what it says, and still supports a decision. Delete the ones that do not.
Trustworthy analytics is a small, well-named set of events tied to real decisions, collected with consent, and reconciled against the systems that hold the actual truth.
Paj Digital Labs
The engineering journal of Paj Digital Solutions — hosting, server infrastructure and web engineering, written by the people who run the servers.
Related reading

Lead Quality Reporting: Optimise for Accepted Work, Not Form Volume
A cheap form submission can be an expensive dead end. Connect acquisition to reviewed lead outcomes without exposing personal data or pretending attribution proves causation.

Technical SEO Monitoring: Catch Broken Signals Before the Monthly Report
Search visibility can regress after one template change. Monitor status, indexability, canonical hosts and sitemap eligibility with small concrete checks tied to release ownership.

SEO Migrations: Redirect Maps That Preserve the Reader’s Destination
A redesign can break search traffic without changing the content. Inventory old URLs, map real replacements and test redirects, canonicals and internal links before the launch.