Guide - Measurement

Analytics audit and correction list

Use this page before any funnel rate is read. It inventories every analytics call in pack app-chauffeur.site.1, maps each current event name to the canonical name in the measurement plan, lists every missing event with its trigger and payload schema, and states the files where each correction ships. No rate is shown until the checks at the end of this page pass.

Audit scope: every file checked

Each file below was read for an analytics call, a beacon, a pixel, an event log fetch, and the local storage keys that carry form state. Files outside this pack are stated as not audited and no event is claimed for them.

FileWhat it records todayVerdict
public/site.js, analytics block and funnel listenerswindow.__cdEmit records into window.__chauffeurdeskAnalytics in memory only, respects Do Not Track, sends nothing over the network, sets no cookie and writes no storage. It emits site_page_view, site_section_view, site_cta_click, signin_start_click, demo_form_start, demo_form_submit_success, demo_form_submit_error, app_install_offer_seen and app_install_decision.Only the three demo events use canonical names. Every other name, the envelope fields, and three duplicate triggers must be corrected below.
public/passenger-book.html, inline scriptFetches quote, request, status, live, submit, reschedule and cancel routes, saves drafts under chauffeurdesk:passenger-book: in local storage, and renders the status card and calendar file. No __cdEmit call appears anywhere in the script.All seven quote and booking events in the catalog are missing. Implement them here once, on /passenger-book only.
public/app/passenger-book.html, inline scriptA second copy of the same form with the same routes and the same draft prefix, with validation that has diverged from the public copy. No __cdEmit call appears.Excluded from every quote and booking count. Counting both copies would count one form twice. Align its validation with the public copy in a separate change.
public/index.html, quote estimator scriptFetches the quote route, caches previews in memory and in session storage under chauffeurdesk:quote-cache:v1, validates estimator fields, stores quote form values, and redirects to /passenger-book. No __cdEmit call appears.Its quote renders are not in the catalog trigger. If counted at all, count them as quote_preview_request with page_path / and keep them out of the /passenger-book quote funnel.
public/request-demo.htmlA form with data-request demo, handled by site.js, plus its own draft binder and validation that show local status only. No analytics call of its own.Correct as is. demo_form_start, demo_form_submit_success and demo_form_submit_error come from site.js only. Do not add a second emitter here.
public/onboarding-checklist.htmlProgress in local storage under chauffeurdesk:onboarding: keys, sent nowhere. No server event and no analytics call.Correct. Device progress is not a funnel event and must never be counted as one.
public/app/index.htmlScript references to /app/app.js, /app/boot.js, /app/install.js and /app/table-scroll.js. Those files are not in this pack.Not audited. signin_start, signin_complete, app_shell_ready and workspace_ready cannot be confirmed or emitted from site.js. Implement signin_start and signin_complete in app code only.
public/404.html and public/offline.htmlInline scripts for return path, copy address, page search, retry and online state. No analytics call.Correct. page_view excludes /404 and /offline, so no event is added here.
All other marketing pages and guidesStatic content only, plus site.js. No page records an event of its own.Correct. page_view and cta_click from site.js are the only events on these pages.

Naming consistency: current name to canonical name

Read the older spelling as the canonical name in the same row. A spelling not in this table is not a recorded event.

Current name in site.jsCanonical nameCorrection
site_page_viewpage_viewRename. Remove page_title and referrer_path, which the catalog never records. Keep trigger: a public page outside /app/, /404 and /offline finishes loading, once per load.
site_cta_clickcta_clickRename. Remove cta_label free text and cta_section. Restrict cta_target to /request-demo, /app/ and /passenger-book. A submit button with no href and any other destination emits nothing.
signin_start_clickNone. Not a start.Remove. A click to /app/ is cta_click with cta_target /app/ only. signin_start fires in app code when /app/ loads for a person who is not signed in.
site_section_viewNone. No funnel place.Remove the observer and the emit. It can fire more than once per section per load and carries section_id, section_index and visible_ms, none of which the catalog records.
app_install_offer_seen and app_install_decisionNone. Use signin_complete.Remove both emits and the any-click decision listener. Install is read as signin_complete, once per new workspace, in app code. A normal link click must not count as an install decision.
demo_form_start, demo_form_submit_success, demo_form_submit_errorSame names. Keep.Keep names and triggers. Emit success or error once per final result, never per retry attempt. Dedup by the outbox Idempotency-Key for network outcomes.
envelope: session_id, view_id, occurred_atEnvelope: event, page_path, utc_date, seq, dedup_keyRemove session_id, view_id and occurred_at from every record. utc_date is the UTC calendar date. seq rises by one per emit in a load. A load nonce may sit inside dedup_key only and is never stored or persisted.
uncapped window.__chauffeurdeskAnalyticsCap 50 entries, drop the oldestCap the buffer at 50 entries so a long visit cannot grow it without limit. Keep in-memory only, no network send, no cookie, no storage, pathname only, and Do Not Track off means no record at all.

Missing events: ready to implement

Each row is one implementation task. Triggers and properties are exact. A property not listed for an event is never sent for that event.

EventTriggerAllowed properties beyond the envelopeDedup keyShip in
quote_form_startFirst input or change in the quote form on /passenger-book, once per load.None.quote_form_start, /passenger-book, utc_date, load nonce.public/passenger-book.html only. Never in the /app/ copy.
quote_preview_requestThe quote fetch returns ok and the preview renders, including a cached render counted the same way, once per distinct service_type rendered per load.service_type, one of airport_arrival, airport_departure, hourly, point_to_point, event.quote_preview_request, page_path, service_type, utc_date, preview sequence.public/passenger-book.html. Home estimator previews use page_path / and stay out of the quote funnel.
quote_request_submit_successPOST /api/publicbook/public/request returns ok with a public token and the status card shows. This is the booking start.service_type from the same fixed list.The Idempotency-Key sent on that POST.public/passenger-book.html, once per final result.
quote_request_submit_errorClient validation blocks the send, or the POST fails on the network or returns an error.service_type where selected, error_class as validation, connection or server.The Idempotency-Key on that POST, once per final result.public/passenger-book.html.
booking_status_viewThe status card loads a booking by token successfully and renders the status body.None. page_path is /passenger-book with no hash.booking_status_view, utc_date, status load nonce, once per successful load.public/passenger-book.html.
booking_change_submit_successA POST to submit, reschedule or cancel returns ok and the status refreshes.change_type as update, reschedule or cancel.The Idempotency-Key on that POST, with change_type.public/passenger-book.html, once per final result.
booking_change_submit_errorValidation blocks one of those posts, or the post fails on the network or returns an error.change_type, error_class as validation, connection or server.The Idempotency-Key on that POST, with change_type.public/passenger-book.html.
signin_start/app/ loads and the app determines the person is not signed in. A click to /app/ is not a start until /app/ loads.None. utc_date only.signin_start, utc_date, app load nonce, once per unsigned-in load.App code only, not site.js and not a marketing page.
signin_completeThe first successful sign-in that opens a workspace, counted once per new workspace. This is the install reading.None. utc_date and new workspace count only.signin_complete, utc_date, workspace open nonce, once per new workspace.App code only. Join to the funnel by utc_date aggregate only. No marketing identifier reaches the app.

Canonical payload schema for every event

Every record carries the five envelope fields first. Field types and allowed values are stated per event. No other field is ever sent.

Envelope, all events

event: string, canonical name only. page_path: string, pathname only, for example /request-demo, never a query string or hash. utc_date: string, YYYY-MM-DD in UTC. seq: integer, rises by one per emit in a load. dedup_key: string, internal only, discarded after the daily count is made. Never: session_id, view_id, occurred_at, page_title, referrer, referrer_path, token, reference code, workspace identifier, person identifier, form values, amounts, pickup places, flight details, or device string.

page_view

Extra fields: none. Trigger: public page outside /app/, /404 and /offline finishes loading, once per load. A reload counts again as a new load. Dedup: page_view, page_path, utc_date, load nonce.

cta_click

Extra fields: cta_target, one of /request-demo, /app/, /passenger-book. cta_location, one of header, hero, body, band, footer. Trigger: a click on a link whose destination pathname is in that set. One click is one count. Dedup: cta_click, page_path, cta_target, cta_location, utc_date, click sequence.

demo_form_start

Extra fields: form_kind, one of demo, question, pilot. Trigger: first input or change in a form with data-request, once per form per load. Dedup: demo_form_start, page_path, form_kind, utc_date.

demo_form_submit_success and demo_form_submit_error

Success extra fields: form_kind. Error extra fields: form_kind, error_class as validation, timeout, connection or server. Trigger: the POST to /api/public/request returns ok with the done message shown, or validation, the 15000 millisecond timeout, the network, or a non-ok response ends the submit. Dedup: the outbox Idempotency-Key, emitted once per final result, never per retry attempt.

quote_form_start, quote_preview_request, quote_request_submit_success, quote_request_submit_error

quote_form_start extra fields: none. quote_preview_request extra fields: service_type. quote_request_submit_success extra fields: service_type. quote_request_submit_error extra fields: service_type where selected, error_class as validation, connection or server. Never: estimated hours, pickup, drop off, amounts, passenger or booker details, token, or reference code.

booking_status_view, booking_change_submit_success, booking_change_submit_error

booking_status_view extra fields: none. booking_change_submit_success extra fields: change_type as update, reschedule or cancel. booking_change_submit_error extra fields: change_type, error_class as validation, connection or server. Never: token, status value, pickup time, reason text, amounts, or chauffeur details.

signin_start and signin_complete

Extra fields: none for both. utc_date only, measured in app code. signin_complete counts once per new workspace. Never: account, workspace identifier, person identifier, marketing identifier, UTM, or referrer. A rate that needs UTM or referrer shows no value until a UTM daily aggregate is recorded under the same privacy rules.

  • Privacy rules for every event: daily aggregates only, no cookie for the funnel, no third party recipient, no cross site identifier, Do Not Track means no record at all, suppress a daily cell that could identify a person, and a zero denominator shows no value.
  • Counts are ratios of two daily aggregate counts for the same utc_date, with numerator, denominator, page set and date range stated. They are not per-person conversion, because no person identifier is recorded.
  • Workspace reports use pickup date in the company timezone. Funnel counts use utc_date in UTC. State the different date rule on any screen that shows both.

Implementation order and acceptance checks

Ship in this order. Each step keeps the same words, links, and form fields.

  1. Fix the emitter in site.js first

    Rename the three misnamed events, remove section and install emits, remove session_id, view_id, page_title, referrer_path and occurred_at, add utc_date, seq and dedup_key, enforce the allowed property list per event at emit time, and cap the buffer at 50 entries. A value outside a fixed list becomes not stated and the count for that value is held for review.

  2. Restrict cta_click to the catalog

    Emit only for link destinations /request-demo, /app/ and /passenger-book, with cta_location as header, hero, body, band or footer. Remove the second signin_start_click emit so one click counts once.

  3. Add quote and booking events in passenger-book.html

    Add the seven events in the missing table behind the existing window.__cdEmit guard, on /passenger-book only, once per final result, deduped by Idempotency-Key where a POST is involved. Keep the /app/ copy and the home estimator out of the quote funnel.

  4. Add signin_start and signin_complete in app code

    Measure both in the app, with utc_date only, once per unsigned-in load and once per new workspace. Do not pass a marketing identifier into the app and do not emit either event from site.js.

  5. Run the validation queries before reading any rate

    Confirm no duplicate dedup_key in one load, no prohibited field and no non canonical name in any record, utc_date matches the UTC instant and seq rises in order, no later funnel step count exceeds an earlier step count for one utc_date and page set, deduped client demo submissions equal deduped server submissions for one utc_date and form_kind, and no duplicate Idempotency-Key exists in server submissions.

Read the funnel only from a checked count

Fix the emitter, add the missing quote and booking events, and measure sign in in the app.