Data & Analytics
Analytics instrumentation: decide the events before you collect them
The tracking plan
page_viewedA page loadspage, referrer, campaignquote_startedThe first field of the quote form is filledservice, pagequote_submittedThe server accepts the formservice, location, lead_idcall_clickedA phone link is tappedlocation, pagejob_bookedThe CRM marks the lead booked, sent from the serverlead_id, service, valueWhat a plan decides
01
Names
One object, one past-tense verb
quote_submitted, never “Submit_Form_v2” or “form-success”. A name is chosen once and kept.
a new name every time a page is redesigned.
02
Properties
Typed, with allowed values
service is one of your services, location one of your locations. Free text is the exception.
the same property spelled three ways.
03
Identity
When a visitor becomes a lead
Anonymous until they submit a form or call; then the visit history joins the lead, and later the customer.
joining on guesses, like an IP address.
04
Consent
What waits for permission
Events that need consent wait for it; the rest stay strictly necessary.
tags that load before the visitor has chosen.
05
Boundaries
What's never collected
No form contents in analytics, no card details, nothing you couldn't explain to the customer.
“just in case” collection.
Three events, as captured
quote_submitted · browser
- fired
- Oct 2, 14:08:11
- visitor
- a-7f3
- properties
- service: water heater · location: Eastside
- lead_id
- L-2207, added by the server
- consent
- analytics: granted
job_booked · server
- fired
- Oct 3, 09:40:02
- lead_id
- L-2207
- properties
- service: water heater replacement · value: $2,950
- source
- the CRM, not the browser
- why server-side
- ad blockers and closed tabs can't lose it
Submit_Form_v2 · refused
- fired
- Oct 2, 14:08:11
- from
- an old tag on the quote page
- plan check
- no such event
- what happened
- not stored; reported to the plan owner
- fix
- tag removed; quote_submitted already covers it
What instrumentation hands off
In
Out
Worth doing properly when decisions depend on it
Good fit
- You spend on ads or content and need to know what turns into work.
- Your current analytics has duplicate or unexplained events.
- You're launching a site or app and can start clean.
Not the right fit
- You only need page views. The defaults of most analytics tools cover that.
- Nobody will look at the data.
Questions about analytics instrumentation
Do you use Google Analytics?
If you already do, we work with it. For product and web behaviour we often start with PostHog. Starting candidates, not requirements; the plan matters more than the tool.
What is server-side tracking?
Sending important events, like a booking, from your own systems instead of the visitor's browser, so ad blockers and closed tabs can't lose them.
How does consent fit in?
The plan marks which events need consent, and those wait for it. The rules you follow are the ones you and your advisers set for where you operate.
Will it slow the site down?
A planned setup usually loads less than an accumulated one, because every tag has to earn its place.