Journeys, Report Queries and Activity
Use the project's Analytics section to investigate attendee behavior. Journeys describe progress through tracked events; Report Queries select cohorts of actors; Activity shows individual recorded events. These answer different questions from a dashboard tile's current record count.
Prerequisites and scope
Select the correct team/project and confirm the Analytics feature is available in that project's dashboard. Navigation can be filtered by the dashboard mask and feature settings. Reporting also depends on event collection and the configured analytics services; an empty chart does not prove that nobody performed the underlying action.
Access the dashboard through an authorized admin account. Exports apply additional attendee/export permissions, including personal-data controls where requested. These dashboard routes are not an attendee plugin's public API contract. Use the supported runtime/API catalog when building an attendee-facing report, and authorize the data it exposes separately.
Before building a report, decide:
- Which project and actor population should be included?
- What action produces the relevant event type/name and properties?
- Which time range and time zone apply?
- Does the question concern event count, distinct actors, current record state or completion through several stages?
- Is the data collection and processing path working in this environment?
Dashboard routes and access checks
On the dashboard host, use these paths under /p/{team}/{project}:
| Navigation label | Path | Purpose |
|---|---|---|
| Journeys | /journeys | Configure tracked states and inspect computed progress |
| Report Queries | /cohort-queries | Save event conditions and run cohort reports |
| Activity | /analytics/activity | Explore recorded platform events |
| Frontend Telemetry | /analytics/faro | Inspect collected browser telemetry |
The current navigation gates these entries on the Analytics feature and project context. Feature visibility is not a server permission check. Selected journey/cohort/activity/Faro listing and query controller methods do not themselves call a resource policy; the Faro metric request's authorization method returns true. Confirm route middleware, project binding and allowed/excluded administrators against the deployed endpoints before granting reporting access. An Analytics menu or the view_analytics catalog entry alone does not establish enforcement for every route.
Cohort and Activity exports explicitly check attendee-list access and apply their export-specific controls; those checks do not certify access to the query/list endpoints. Keep roster, event-property and browser-telemetry data within the intended project and audience. These are administrative reporting surfaces, not public endpoints to expose through an attendee App.
Create a journey
- Open Analytics → Journeys and create a named journey. A newly created journey starts inactive with no states.
- Open State Builder. Add states representing measurable events, assign their order and choose matching rules using the available event catalog.
- For page, API, form or scan events, use the offered event-name and property selectors. The platform exposes lookup lists for portal pages, named API routes, form questions, authentication methods and scan statuses.
- In Settings, choose completion mode, order enforcement, timeout and active state. Save the state definitions and settings before collecting a test journey.
- Have a controlled attendee perform the intended actions. Inspect Overview and Progress, allowing for analytics processing delay.
- Open the journey report to inspect the funnel, time in state and trends. Keep the report's time range consistent when comparing results.
Each state has an ID, name, order, matching-rule array and is_terminal value. A rule identifies event_type, an optional event_name_pattern and optional property_filters. The model sorts states by their order and matches events against the configured rules.
For example, a journey might track portal entry, a form submission and a credential scan. Select the actual deployed event types and properties for those steps; merely naming a state "Registered" does not make registration events match it.
Completion and order
| Setting | Behavior to verify |
|---|---|
completion_mode: all_states | Completion requires the configured states to be satisfied |
completion_mode: terminal_state | Reaching a configured terminal state determines completion |
enforce_state_order | Out-of-order events can be skipped rather than advancing the attendee |
timeout_minutes | Incomplete progress can be marked abandoned after the configured inactivity threshold |
is_active | Controls whether the journey participates in normal computation |
Keep terminal state IDs aligned with the state definitions. Test an attendee completing the expected order, one skipping a state and one performing steps out of order. Completion and abandonment are computed report states; they do not themselves send emails, create records or execute workflow steps. Use Admin Workflows for automation.
Historical backfill
Use Advanced → Backfill Journey when you need progress computed from previously collected events. Choose a start and end date; the end must be after the start. The default maximum range is 365 days, configurable by the deployment.
The estimator reports expected query processing size before a backfill. Backfill uses stored analytics events, so it cannot reconstruct actions that were never collected. A submitted request queues work; the journey's running/last-backfill indicators and resulting progress establish whether it finished. The current implementation uses a claim lease to prevent concurrent backfills of one template. A competing request can return 409.
The journey detail's Advanced → Backfill card shows an in-progress message, last-backfill time or no-backfill message; the start modal displays request/estimate errors. Reload the detail to inspect updated state. A closed modal, cleared running lease or historical last-backfill timestamp alone does not prove this request finished successfully. Compare resulting progress for the requested range and retain the request/error details for the operator when the outcome is unclear.
Do not repeatedly start equivalent backfills while processing is active. If a job failed or stopped, retain the journey/date range and failure time for the operator; deployment and queue recovery procedures belong in the separate runbooks.
Build a Report Query
The navigation label Report Queries refers to saved cohort queries. A cohort is a set of actors matching event conditions within a time range; it is not automatically a persistent attendee group.
- Open Analytics → Report Queries and create a named query with a description and date range.
- In Query Builder, choose AND/OR logic and add event conditions or nested groups.
- Use an event-occurrence condition for people who performed an action, a non-occurrence condition for an action missing in the selected window, using the builder's current occurrence/non-occurrence controls. The backend compiler also supports sequence conditions, but the current visual builder does not expose a sequence input; use journeys when you need a guided ordered-state report.
- Preview the rules before treating their count as a final audience. Preview returns a count, a truncation indicator and a first page of matching attendees.
- Save and open Results → Run Query. Inspect the results and continue through pagination where needed.
- Export either the matched attendees or the underlying events when the account is authorized to do so.
This illustrative rules object selects actors with a recorded page view and no recorded form submission in the query window:
{
"logic": "and",
"conditions": [
{
"type": "event_occurred",
"event_type": "page.view",
"property_filters": [],
"count_operator": ">=",
"count_value": 1
},
{
"type": "event_not_occurred",
"event_type": "form.submit",
"property_filters": []
}
]
}
The query still needs its project and date-range context. Narrow the event name/properties through the current builder if you mean one specific page or form. Absence means absence in the available recorded population/window; it cannot establish behavior outside that window or compensate for missing telemetry.
For a leading non-occurrence condition, the compiler subtracts matching actors from distinct attendee actor IDs with any recorded event in this project and query window (start inclusive, end exclusive). An attendee with no recorded event at all in that window is outside this base; this is not an all-registered-attendees roster. Other conditions can further change the set through their grouping.
The compiler combines positive groups using set intersection/union and non-occurrence using set exclusion. The default query range limit is 90 days. The runner caps regular/preview results at 10,000 actors by default. If truncated:true, count describes the retained capped set, and the complete population is larger; pagination cannot retrieve actors already omitted by that cap. Attendee exports use a separate default 50,000-actor limit, and event exports also have a row cap. Check their truncation result as well. Narrow the rules/date range or request an approved reporting approach from the platform team when the complete population exceeds the available limits. Never present a truncated export as complete.
Cohort exports
attendees exports the matched roster; events exports tracked event rows behind the cohort. Both are queued exports. Use their Export Logs status and the completed download rather than treating the queue acknowledgment as a file.
On an events export, requesting include_pii adds attendee identity columns and requires the corresponding personal-data export permission. The roster follows its field/export restrictions and export download authorization. Choose the smallest useful export and verify its column set with test data before distributing it.
Explore Activity
Open Analytics → Activity → Explore to inspect individual events. Filter by event type, actor, source, text and time. Results are sorted and paginated, so the first page is only a sample of matching events.
Activity search reads the platform's recent event store. The default hot window is 30 days. Its export path can read the analytics event store for a broader range, with its own date/row limits and processing requirements. Search and export populations can therefore differ legitimately. Record the actual window and source when comparing them.
Use event timestamp, type/name, properties and any trace/session information to explain the underlying action. Actor IDs may need resolution to an attendee in the current project. Some events have no attendee actor; those do not automatically become attendee journey progress. A browser rendering error belongs in Frontend Telemetry when that service is configured, rather than in a guessed attendee event count.
Explore Frontend Telemetry
Open Analytics → Frontend Telemetry → User Activity. The current panel offers Unique Users, Sessions, Page Views, and Events & Errors, with shared date/interval controls. This is the platform's Faro browser telemetry, separate from the documentation site's Google Analytics tag and from server-side Activity, journey progress or audit history.
The environment must enable the analytics service and provide its server-side analytics connection and curated telemetry table/view. Configuration alone is insufficient: the service checks that the table exists. A missing/unavailable pipeline produces Frontend telemetry isn't connected rather than proving no browser activity occurred. Ask the platform operator to verify collection, ingestion and the curated data source; provisioning credentials and infrastructure procedures remain in the separate runbooks. No service-account credential belongs in an attendee App or public docs bundle.
| Metric | Current aggregate | Interpretation limit |
|---|---|---|
| Unique Users | Distinct user_id per selected primary time bucket | Telemetry identities, not a verified count of attendees who read or understood content |
| Sessions | Distinct session_id per primary bucket | A session can span buckets; summing bucket distinct counts is not a distinct total for the whole window |
| Page Views | Events named faro.performance.navigation | Collected navigation events, not every possible interaction or server request |
| Events | Rows with kind = event | Event rows, not unique people or completed journeys |
| Errors | Rows with kind = exception | Collected exceptions, not proof every browser error was captured |
Distinct user counts are also nonadditive across buckets. Compare the same project, window, time zone and metric definition before reconciling this panel with another report. The service queries by project ID and timestamp range; collection completeness and correct identity/project attribution still need acceptance.
The current service defaults its start to 28 days before the end date and clamps over-wide requests to a 90-day lookback, using day boundaries in the requested time zone (an unrecognized time-zone string falls back to UTC). The query includes timestamps from start-of-day through end-of-day, including both bounds. Inspect the returned range rather than assuming an arbitrarily selected historical window was fully queried. Metrics are cached by project and validated request, with a default 300-second TTL. Table-provisioning availability is cached for 60 seconds. These are source defaults and can differ in a deployment. The current service reports primary buckets with matching detail entries; it does not calculate an independent secondary-interval drill-down. For example, opening the detail of a daily bucket does not provide a newly computed hourly breakdown; it mirrors that primary bucket.
A query exception is logged and converted to an empty result map, which can become zero-filled chart buckets and be cached. Consequently, even a connected panel displaying zeros does not establish that nobody visited or that ingestion is healthy. Record the project, window/time zone, interval and observation time, then ask the operator to check query warnings and ingestion freshness before interpreting zeros as a business result. Repeatedly reloading within the cache window does not force fresh data.
Telemetry acceptance and diagnosis
Use a controlled portal client and a representative permitted administrator. Perform a known navigation, supported event and controlled browser exception, then verify their project attribution and appearance after ingestion/cache delay. Check a client excluded from the reporting project and a denied administrator separately. Do not inject attendee personal data or secrets into telemetry just to make a test event recognizable.
Verify the disconnected state, a connected sample, a time-zone/day boundary and a controlled query failure in the appropriate test environment. Preserve source/query evidence alongside chart observations. A successful page load, table-existence check or mocked analytics test does not prove the deployed collection-to-reporting path, privacy or authorization works.
Verify a report before using it
Prepare a controlled sample with attendees who:
- Complete every intended journey state in order.
- Complete only the first state.
- Perform steps out of order or trigger an unrelated event.
- Perform the same action more than once.
- Fall outside the selected project or time window.
Compare their Activity events, journey state/progress and cohort membership. Check a day/time-zone boundary. Verify that the export's fields and population match the selected type. This catches incorrect event selectors, actor mapping, duplicate-event assumptions and inappropriate comparisons between events and distinct people.
Submit client analytics events
Client event ingestion is registered separately from the shared project REST file at POST /api/v1/analytics/track when portal routing is enabled. Use the configured serving environment and validate browser access there; do not invent a /v1/analytics/track alias from the main REST API's aliases. This is GxP telemetry, separate from the Google Analytics tag on the documentation hub.
A synthetic payload illustrates the selected request rules; replace the project identifier with your integration's intended project and choose non-sensitive properties:
{"event_type":"documentation.example","event_name":"Example action","project_id":"synthetic-project","properties":{"component":"Example"}}
| Field | Selected validation |
|---|---|
event_type | Required string, maximum 50 characters; no event-name catalog/enum is enforced here. |
event_name | Required string, maximum 255 characters. |
project_id | Optional nullable string, maximum 255 characters. A numeric JSON value fails this string rule. The selected request does not check project existence or membership. |
properties | Optional nullable object/array. Nested property names/types have no declared allowlist in this request. Omission/null is forwarded as an empty array. |
The request itself permits submission, and the route does not add the normal project-record resource policy. It uses tracking/session middleware and an IP-based limiter, default 60 requests per minute with deployment configuration able to change it. Do not use this endpoint to authorize business actions, award trusted points or establish an audit-quality assertion of project membership. Caller-supplied project/event/property values remain client telemetry. Avoid secrets, credentials, email addresses and other personal data in event names, URLs or properties; the selected logger has no property redaction pass.
The controller checks the portal guard first, then Sanctum. An Attendee instance becomes actor type attendee; any other authenticated object is labeled admin, and absence becomes anonymous. That label alone is not proof the actor is an administrator or permitted in the supplied project. Root actor_id, actor_type and source are not selected request fields; the controller derives actor information and sets source to client. Do not confuse arbitrary similarly named nested properties with trusted actor context.
Interpret the acknowledgment
The controller returns HTTP 202 with {"ok":true} after calling the logger. This contains no event receipt or durable record ID. It does not certify that the event was stored, queried, scored, delivered or appeared in Activity:
- Disabled analytics returns from the logger without writing.
- The logger generates a fresh event ULID/timestamp and attempts its configured platform-event log channel. If that fails, it tries fallback logging and swallows failures to avoid breaking the primary app.
- Session/visitor/trace context can be absent. Available session context is hashed rather than the raw session ID; this does not anonymize arbitrary properties or make visitor/actor identifiers non-sensitive.
- No client idempotency-key contract is selected here. Retrying can create another event with a new ID; an unknown result is not evidence of either zero or one stored event.
Handle validation errors by correcting the payload; handle rate limiting with the consuming client's bounded policy. Do not build an unlimited retry loop or interpret the 202 body as a survey submission, feedback receipt or authoritative completion record. Verify cookies, CORS, principal selection and the actual response/error envelope in the deployed browser environment.
For acceptance, submit a project-approved controlled non-sensitive event, then independently verify its stored project/actor/source and its appearance after ingestion/cache delay. Test the intended anonymous and authenticated context separately and inspect the reporting pipeline when 202 is followed by missing results. This documentation checkpoint does not send such an event. Detailed logging infrastructure, data retention and pipeline recovery stay in private operator runbooks.
Troubleshooting
| Symptom | Check |
|---|---|
| Analytics section missing | Project/team, feature/mask settings and account access |
| Journey never advances | Active flag, saved states, event catalog, event-name/property rules, actor mapping and processing delay |
| Later state missing | Order enforcement, preceding state, timeout and actual event timestamp |
| Journey shows completion unexpectedly | Completion mode, terminal states and broad matching patterns |
| Preview count differs from attendees shown | Preview page limit, pagination, truncation and actor-to-attendee hydration |
| Non-occurrence audience looks too broad | Project/window and base recorded population; missing telemetry can look like a missing action |
| Activity search and export differ | Recent-store window versus analytics-store export range and processing freshness |
| Export pending/failed | Export log, query/range limits, relevant export permission and analytics processing availability |
| Frontend Telemetry disconnected or zero-filled | Provisioned table, ingestion freshness, project/identity attribution, effective range, cache age and query warnings |
| Backfill rejected | Date range, already-running claim, service availability and the returned error |
Implementation reference
Reviewed against routes/admin/dashboard.php, app/Http/Controllers/Admin/Project/JourneyTemplateController.php, JourneyReportController.php, CohortQueryController.php, ActivityController.php, app/Models/JourneyTemplate.php, JourneyProgress.php, app/Services/Analytics/, config/analytics.php, the Journeys/CohortQueries/Analytics dashboard pages, and testing/Integration/Services/Analytics/ and testing/Feature/Admin/Project/JourneyReportExportTest.php at experience-portal commit 0cab696769c165d93328253378ad7e51ec7ab62e on 2026-10-13. The implementation tests inform this guide; test execution and environment acceptance are recorded separately in the documentation review.
The dashboard-route and Frontend Telemetry additions were reviewed at 3b48eb675f7c8e3c4f0b87d0cd613fa7fb371093 against the Faro controller/request/service, analytics configuration, navigation and selected journey/cohort/activity controllers. Fingerprints and bounded review scope are recorded in repository docs/coverage/surface-analytics-source-snapshot.json and docs/surface-analytics-review-2026-10-15.md; live collection, access and reporting acceptance remain separate.