Tasks
Define a flow as ordered steps and measure task success, time on task and where people stop.
A task is an ordered list of steps a person goes through to get something done: open checkout, click Pay now, order placed. Cueston reads the events it already has and reports how many attempts succeed and how long they take.
Create tasks in the dashboard under Insights → Tasks. Reading results needs the analytics.view permission; creating, editing and deleting a task needs content.edit as well.
Steps
A task has 2 to 8 steps. Each step is one of three kinds:
| Kind | Matches | Example |
|---|---|---|
| Opens a page | A $pageview whose path fits the pattern. * matches anything. /invoices/* also matches /invoices itself. | /checkout, /invoices/* |
| Clicks a control | A $click on a control with this text (any letter case), or whose selector contains the text you give. | Pay now, or button.pay by selector |
| Custom event | An event sent with Cueston.track(), by its exact name. | Order placed |
Page and click steps need product analytics to be on. A task made only of custom events works without it.
Page patterns are compared with the grouped path, so ids don't matter: /invoices/8841 and /invoices/* both match the page stored as /invoices/:id.
How attempts are counted
- An attempt is a session in which the first step happened. A session is one browser tab, and a new one starts after 30 minutes without activity.
- Each later step counts the first time it happens after the step before it, in the same session. Other events may happen in between.
- The attempt succeeded when every step happened. One session is one attempt, however many times the first step repeats in it.
Results
| Result | Definition |
|---|---|
| Task success | Successful attempts divided by attempts. |
| Time on task | Time from the first step to the last, for successful attempts: median, the time 75% and 90% finish within, and the average. |
| Steps | Sessions that reached each step, and the median time from the step before. |
| Attempts with friction | Attempts with a rage, dead or error click between the first step and the last one reached. For an abandoned attempt, friction counts for up to 30 minutes after it started. |
| Recent attempts | The 50 newest attempts, how far each got and, when the session was recorded, a link to its recording. |
Results are computed when you open the task, from the last 7, 30 or 90 days of events. Editing a task's steps changes its results for the whole period.
A workspace can have up to 100 tasks.