Redacted analytics schema that keeps the counts and removes direct identifiers
Use schema version 2 for every new signed-in event derivation. Headline counts still come from question, answer and feedback records inside one college workspace. No shipped payload carries raw question text, an email address, or a direct workspace or record identifier.
Version 2 replaces direct identifiers with workspace and turn key hashes, replaces millisecond timestamps in exported copies with cohort day and hour buckets, coarsens exact role to a role group, and keeps test rows excluded from headline counts. A payload that carries a forbidden field is not shipped.
Version 1 to version 2 field map
Version 1 fields are named on the measurable funnel page. The table below states the version 2 form for each field. Counts, deduplication and exclusions do not change. Only the shipped form of each field changes.
| Version 1 field | Version 2 field | Rule |
|---|---|---|
| event_name, schema_version 1 | event_name, schema_version 2 | Event names are unchanged. Schema version is 2 on every new derivation. A version 1 payload is read for history only and is never written again. |
| tenant_id | workspace_key | One-way hash of the workspace identifier with a purpose label for analytics counts. The same workspace gives the same key in every derivation, so distinct workspace counts are stable. The key cannot be read back as a workspace identifier and is never used as a database key. |
| assistant_id, question_record_id, answer_record_id, sign_in_record_id, workspace_record_id | assistant_key, turn_key, answer_key, sign_in_key | One-way hash of the record identifier with a purpose label. Turn key joins a question, its answer and its feedback for deduplication only. No record identifier is shipped in any field. |
| event_id built from a record identifier plus event name | event_key | One-way hash of the turn key plus event name. Deriving the same record twice gives the same event key and the same count. A changed question, assistant, wording version or passage gives a new turn key. |
| occurred_at with millisecond precision | cohort_day, cohort_hour | Exported copies carry the cohort day as YYYY-MM-DD and the hour bucket as an integer from 0 to 23, in college local time for signed-in stages. Millisecond and second values stay inside the workspace record and are not exported. A missing time is null and the record is counted in the excluded count. |
| role as an exact role name | role_group | Role group is one of staff, administrator, governance, student, visitor or null. Exact role names, person names and account identifiers are never shipped. System view never shows a role group split. |
| channel, is_test, turn_index, outcome, has_citation, citation_count, rating, comment_present | channel, is_test, turn_index, outcome, has_citation, citation_count, rating, comment_present | Unchanged in meaning and type. Booleans stay true or false, counts stay JSON numbers, and test rows stay excluded from headline counts and labeled as excluded. |
Hash, bucket and leakage rules
Apply every rule below before a version 2 payload is shipped. A payload that fails any rule is not shipped.
- Hash purpose separation: workspace, turn, answer and sign-in keys use different purpose labels, so a key from one purpose cannot be used as a key for another purpose
- Stability without reversibility: the same input gives the same key for counting, and no key in a payload can be reversed to a workspace or record identifier
- No direct identifier in any field: tenant, assistant, question, answer and sign-in identifiers, account identifiers and email addresses are absent from every shipped payload
- Cohort bucketing: exported copies use cohort day and cohort hour only, with the week stated as Monday to Sunday in college local time, and a partial current week labeled as partial
- Zero denominators: a rate with a zero denominator is shown as no questions in this range, no rated answers in this range or the matching words for the measure, never as zero percent, with counts beside the rate
- Unavailable stays separate: unavailable outcomes are recorded separately from not answered and are never counted as a source gap or as a sourced answer
- Session-only mode: a stage that needs kept records states not calculated in session-only mode, and system view returns counts grouped by workspace key only
Forbidden in any version 2 payload
Question text, answer text, comment text, search words, form field values, draft content, source title, source link, passage, office contact detail, person name, email address, phone number, account identifier, student record detail, file content, file name, cookie, fingerprint, device identifier, IP address and user agent string.
Gap taxonomy: what is measured today and what is still missing
Status is read from public/site.js, the measurable funnel page and the analytics taxonomy page in this pack. Proposed means named in the taxonomy with no emission in public/site.js yet, so the funnel stage it feeds cannot be counted today.
| Event | Status in this pack | Funnel stage fed |
|---|---|---|
| campus_page_view, campus_cta_click, campus_sign_in_start, campus_demo_request_start, campus_install_start, campus_install_completed | Existing. Emitted in public/site.js, in memory on the page only, capped at 100, with no network request, beacon, cookie or storage, and suppressed by Do Not Track, Global Privacy Control and CAMPUS_ANALYTICS_OPT_OUT | Marketing segment only. Conversion is valid only inside the marketing segment and is never divided by or from a signed-in count |
| campus_workspace_created | Reserved name. Not fired by marketing pages. Fired only by the signed-in app on workspace create or confirm, derived from the workspace record | Signed-in segment. Count distinct workspace keys first confirmed ever |
| campus_sign_in_completed, campus_question_submitted, campus_answer_shown, campus_answer_viewed, campus_followup_asked, campus_feedback_given | Server derived at report time from sign-in, question, answer and feedback records, described on Reports and the taxonomy page. Headline counts come from the records, not from event delivery | Signed-in segment. Each event fires once per record moment with event key from the turn key, so a reload or a repeated derivation adds no second count |
| campus_form_start, campus_form_validation_failed, campus_form_submit_attempt, campus_form_submit_success, campus_form_submit_failure | Proposed. Named in the canonical form table on the taxonomy page with allowlisted properties form_kind, source_page, attempt_bucket, validation_error_bucket and failure_type, and not emitted in public/site.js | Closes the gap between demo intent and demo submitted. Form kind is demo or question only, and no field value is ever a property |
| campus_guide_search_performed, campus_status_check_performed, campus_sample_asked | Proposed. Named in the canonical discovery table on the taxonomy page with allowlisted properties surface, result_bucket, outcome and source_page, and not emitted in public/site.js | Discovery segment. Result bucket is with_result or no_result, outcome is one of the values stated on the taxonomy page, and no search word or question text is ever a property |
| campus_demo_submitted | Proposed as the funnel alias for form submit success with form kind demo. Fires once per successful send per page load, with a retry reusing the same request reference | Marketing segment demo submitted stage, counted once against demo request start in the same segment |
Retired names campus_answer_feedback, campus_answer_unanswered, campus_search_no_result and campus_demo_submitted without an attempt bucket are mapped to their canonical names on the taxonomy page. Do not emit a retired name beside its canonical name.
Checks before you ship a version 2 change
Run each check in a test workspace and on a public page before you publish.
- Inspect the payload keys for every signed-in event and confirm they match the version 2 map, with no direct identifier and no forbidden field present
- Derive the same record twice and confirm the event key and the count are unchanged, and derive a changed question and confirm a new turn key
- Confirm Do Not Track, Global Privacy Control and CAMPUS_ANALYTICS_OPT_OUT suppress every marketing event, including any proposed form and discovery event
- Confirm test and staff preview rows carry is_test true and are excluded from headline counts, and unavailable stays separate from not answered
- Confirm marketing counts and signed-in counts are shown side by side with units stated, and no marketing count is divided by a signed-in count
- Confirm the proposed form and discovery events, when added to the allowlist in public/site.js, use the same opt-out, in-memory cap and no personal details rules, and each action fires at most once per page load
Use version 2 on every new derivation
Build the next event from the map above, with the same names, properties and privacy rules.