Standard event schema for public and signed-in funnel
Use one v1 envelope for every marketing and quality event, so a page view, a call to action, sign-in, workspace creation, a question outcome, and a rating can be joined in one funnel. The checker on this page maps legacy payloads to the canonical form and shows the dedupe key and week bucket for each payload. Nothing entered here is sent to a server.
Audit findings this schema closes
Each row names a defect in the current pack and the v1 rule that closes it. No row adds a new event name beyond the names already stated in the pack.
| Defect | Evidence | v1 rule |
|---|---|---|
| Same value, three field names | Quality events use rating, outcome, and result_bucket, while aggregate and CSV use helpful, not_helpful, unanswered, no_result_searches, and with_result_searches | Keep the three per-event field names. Map aggregate names at report time only. Never emit a field named value |
| Surface drift | Demo code emits surface guides, while the allowed list and normalizer still accept weekly-quality-rate-guide. Signed-in spec uses workspace as a surface | Surface enum is marketing, guides, terminology, widget, or app. weekly-quality-rate-guide maps to guides and is retired. workspace maps to app and is retired as a surface |
| Time drift and no order | Payloads used week, ts, and week_starting_monday_utc in different places, with no occurred timestamp after ts was removed | occurred_at_utc is required in ISO 8601 form ending in Z. week_starting_monday_utc is derived from it at report time. ts and week are retired |
| Context loss at the funnel boundary | Quality payloads carry workspace, assistant, and channel as null on the public demo and carry no source page, referrer class, campaign snapshot, anonymous identifier, or session identifier, so they cannot join to page view or call to action events | Every event carries anonymous_id, session_id, source_page, referrer_class, and the allowlisted campaign snapshot. Client events always carry workspace, assistant, and channel as null. Signed-in values are filled from the record at report time and are never taken from a client payload |
| Duplicate firing and dual source of truth | Demo aggregate counts each rating click, while the spec says a changed rating replaces the earlier rating. Demo also dispatches a campus-quality custom event while the spec says derive each event from the record at report time and do not add a client beacon | origin is client or derived. Demo and browser payloads are client and are example only. Signed-in quality counts use derived events only. Each event carries a deterministic dedupe_key, and a rating change reuses the same dedupe_key so report time keeps the last rating |
| No version and no retry identity | Payloads carry no schema version, and event_id is random per payload, so a collector cannot tell a retry from a new action | schema_version is 1. event_id is generated once per user action and is reused on retry with the same field values. A new field value creates a new event_id |
v1 envelope, every event
A strict collector accepts only these keys, plus the allowlisted campaign keys and the one event-specific field for that event. An unknown key is a validation error, not a silent drop.
| Field | Type and rule |
|---|---|
| schema_version | Integer 1 on every event |
| event_id | String, generated once per user action, reused on retry with the same field values. Never an account identifier and never a token |
| event_name | One name from the catalogue below, in lower snake_case with the campus prefix |
| occurred_at_utc | ISO 8601 in UTC ending in Z, set when the action happens, not when the report runs |
| surface | marketing, guides, terminology, widget, or app |
| anonymous_id | Random identifier created on the first opted-in event on the device, stored on the device only, rotated when device data is cleared. It is not an account identifier, not a session token, and never appears in a page address. Recording off means no identifier is created or sent |
| session_id | Random identifier for one browser session, stored in session storage only, cleared when the session ends |
| source_page | Pathname only, starting with a slash, with no query string and no hash. A query string can hold search words and is never sent |
| referrer_class | same_site, external, or none. The full referrer address is never sent |
| workspace, assistant, channel | Client events carry null for all three. Derived signed-in events carry workspace and assistant identifiers from the record, and channel as app or widget. A client value for any of these on a signed-in route is ignored |
| week_starting_monday_utc | Monday date in YYYY-MM-DD form derived from occurred_at_utc. Signed-in rates convert this bucket to college local time and state the basis used |
| dedupe_key | Deterministic string per event in the catalogue. A collector keeps the last event per dedupe_key for rating and outcome events |
| is_test | Boolean. Test and staff preview sessions carry true and are excluded from every rate, with the excluded count shown where the screen can count it |
| origin | client for a browser payload, derived for a signed-in event derived from a record at report time. Rates use derived events only |
| utm_source, utm_medium, utm_campaign, utm_term, utm_content, utm_id | Optional, allowlisted values only, each trimmed, at most 120 characters, letters, digits, dot, underscore, or hyphen only. Any other value is dropped and the dropped name only may be counted |
Never in any event: question text, answer text, comment text, search words, source title, source link, passage, office contact detail, person name, email address, phone number, account identifier, student record detail, file content, file name, form field values, or a full referrer address.
Event catalogue
One row per event. Install events already named in site code keep their existing names and adopt this envelope without a rename in v1.
| Event | Fires once when | Extra field | Dedupe key | Measure fed |
|---|---|---|---|---|
| campus_page_view | A public page is shown | None beyond the envelope | event_id only. Each load is a new view | Reach by source page and campaign |
| campus_cta_click | A call to action to request a demo, sign in, try a sample, or use the widget is chosen | cta_target, one of request_demo, sign_in, try_sample, widget | event_id only. The 800 millisecond duplicate guard is a user interface guard, not a collector rule | Call to action rate by target and campaign |
| campus_sign_in_start | Sign-in is started from a public page | None beyond the envelope | anonymous_id, session_id, source_page | Sign-in starts per session |
| campus_demo_request_start | The demo request form is started | None beyond the envelope. No form value is sent | anonymous_id, session_id, source_page | Demo starts per session |
| campus_workspace_created | A workspace is created in the signed-in app, derived on the server | None beyond the envelope. The client payload carries no college name and no workspace identifier | Server derived workspace identifier, held outside the client payload | Workspace creation by campaign |
| campus_feedback_given | A helpful or not helpful rating is saved on an answer, derived from the answer record | rating, helpful or not_helpful, plus answer_id as an opaque identifier. No comment text | answer_id plus actor pseudonym, filled on the server. A changed rating reuses the key, so report time keeps the last rating | Helpful rate and weekly quality rate numerator |
| campus_answer_shown | An answer, a not-known message, a handoff offer, or an unavailable message is shown for a question, derived from the question record | outcome, one of answered, not_answered, handed_off, unavailable, plus question_id as an opaque identifier. No question text | question_id plus outcome, filled on the server | Answered share, unanswered rate, handoff rate. Only not_answered feeds the weekly quality rate denominator. Unavailable stays separate |
| campus_guide_search_performed | A search on guides, terminology, or workspace settles with a result or with no result | result_bucket, no_result or with_result. No search words and no result count beyond the bucket | event_id only. Search words are never sent, so no word based key can be built | No-result search rate and weekly quality rate denominator |
Retired names and fields, never emit
| Legacy | v1 replacement |
|---|---|
| campus_answer_feedback, campus_answer_unanswered, campus_search_no_result | campus_feedback_given, campus_answer_shown, campus_guide_search_performed |
| value as a shared field name | rating, outcome, or result_bucket for that event |
| week, ts, nothelpful, noresult, withresult | week_starting_monday_utc, occurred_at_utc, not_helpful, no_result, with_result |
| weekly-quality-rate-guide as a surface, workspace as a surface | guides, app |
Example payloads
Counts and identifiers only. No question text, no search words, and no personal detail appear in any example.
{
'schema_version': 1,
'event_id': 'example-event-id',
'event_name': 'campus_cta_click',
'occurred_at_utc': '2026-11-07T12:00:00Z',
'surface': 'marketing',
'anonymous_id': 'example-anonymous-id',
'session_id': 'example-session-id',
'source_page': '/guides/weekly-quality-rate',
'referrer_class': 'external',
'workspace': null, 'assistant': null, 'channel': null,
'week_starting_monday_utc': '2026-11-02',
'dedupe_key': 'example-event-id',
'is_test': false, 'origin': 'client',
'cta_target': 'request_demo',
'utm_source': 'newsletter'
}{
'schema_version': 1,
'event_id': 'example-derived-id',
'event_name': 'campus_feedback_given',
'occurred_at_utc': '2026-11-07T12:05:00Z',
'surface': 'app',
'anonymous_id': 'example-anonymous-id',
'session_id': 'example-session-id',
'source_page': '/app/',
'referrer_class': 'same_site',
'workspace': 'workspace-id-from-record',
'assistant': 'assistant-id-from-record',
'channel': 'app',
'week_starting_monday_utc': '2026-11-02',
'dedupe_key': 'answer-id-from-record',
'is_test': false, 'origin': 'derived',
'rating': 'helpful', 'answer_id': 'answer-id-from-record'
}Check and normalize a payload on this page
Paste a payload as JSON, or load an example. The checker maps legacy field names, computes the week bucket, builds the dedupe key where the inputs allow it, and shows the normalized v1 payload. Nothing entered here is sent to a server and nothing is saved.
Paste a payload, then choose Check payload.
Checks before you ship an event change
Run each check with the same payload on the public page and in the signed-in app before you publish.
- A legacy payload with value, week, ts, and surface weekly-quality-rate-guide normalizes to rating or outcome or result_bucket, week_starting_monday_utc, occurred_at_utc, and surface guides, with no legacy key left in the output
- A rating change reuses the same dedupe_key, so report time counts one rating per answer. A retry with the same event_id and the same field values does not create a second count
- A public payload with a client supplied workspace, assistant, or channel is rejected on the signed-in route and the derived event fills those fields from the record
- A payload with question text, search words, a form value, an account identifier, or a full referrer address fails validation and is not recorded
- Recording off, Do Not Track, Global Privacy Control, and CAMPUS_ANALYTICS_OPT_OUT suppress identifier creation, storage, and forwarding, and the status line states that choice
- Test sessions carry is_test true, are excluded from every rate, and show the excluded count where the screen can count it
- Unanswered, handed off, and unavailable outcomes stay in separate counts, and a zero denominator shows no measured outcomes in this range, not zero percent
Follow Weekly quality rate for the rate definition, Metric dictionary for KPI definitions, and Read reports for counts by college and assistant.
Next guide
Read the numbers, then work the largest gap first.