> For the complete documentation index, see [llms.txt](https://docs.userlane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.userlane.com/developers/analytics-api/getting-started-with-guide-events.md). Agents can also search and read this documentation through its [MCP server](https://docs.userlane.com/~gitbook/mcp).

# Getting started with Guide events

All requests go to `https://api.userlane.com/analytics`. For pagination, sorting, empty values, and errors that apply to every Analytics API endpoint, see [Using the Analytics API](https://docs.userlane.com/developers/analytics-api/using-the-analytics-api.md).

## Event types

The API returns three event types:

* **`guideStarted`** — Triggered when a user starts a guide.
* **`guideFinished`** — Triggered when a user reaches the end of a guide.
* **`guideExited`** — Triggered when a user closes or cancels a guide before finishing or when the user exits on the last step without clicking the finish button. It includes the step they exited on.

## What you get

Each event in the response includes:

| Field                    | Description                                                                                                                                   |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `time`                   | ISO 8601 timestamp of the event (UTC)                                                                                                         |
| `event`                  | Event type (`guideStarted`, `guideFinished`, or `guideExited`)                                                                                |
| `user.id`                | Userlane user ID                                                                                                                              |
| `user.applicationUserId` | Client-defined user identifier (optional)                                                                                                     |
| `guide.id`               | ID of the guide that triggered the event                                                                                                      |
| `step`                   | Step information — `null` for `guideStarted`; for `guideFinished` and `guideExited`, an object with `id`, `stepNumber`, and `totalStepNumber` |

The envelope also returns `type`, `version`, `start`, `end`, and the paginated `events` array.

## Typical use cases

* **Start vs finish rates** — How many users who started a guide actually completed it.
* **Drop-off analysis** — Use `guideExited.step` to see exactly where users abandon a guide and on which step.
* **Guide effectiveness** — Compare completion rates across guides to spot which ones are too long, unclear, or poorly timed.

## Guides API vs Guide Progress API

This endpoint returns **raw events** — one record per start, finish, or exit. Use it when you want event-level granularity (timestamps, exact drop-off steps, replays of user journeys).

The Guide Progress API returns **per-user state** — current completion percentage and furthest step reached for a specific guide, plus aggregate completion stats. Use it when you want a "where are users today" snapshot rather than a stream of events.

Most BI dashboards use Guide Progress for headline metrics and the Guides API for drop-off analysis.

## Enriching with user attributes

`user.applicationUserId` is the join key back to your own user system. To answer segment-level questions (completion by role, region, licence type), join guide events with your customer data warehouse on `applicationUserId`. To enrich with Userlane-side attributes (first seen, last seen, custom attributes), use the [Enduser data API](https://github.com/Userlane/developer-docs/tree/main/docs/core-api/getting-started-with-user-data.md) (Core API).

To correlate guide engagement with feature adoption or sentiment, join guide events with the Tags, NPS and Survey API on user.id.

## Resolving guide IDs

The `guide.id` returned in each event is numeric. To find the ID of a specific guide, either:

* Open the **Guides analytics** page in the Userlane Portal and export the guide list from the table, or
* Open the analytics page for a specific guide and copy the ID from the URL.

## Endpoint

`GET /public/enduser-events/guides/property_id/{property_id}`

## Query parameters

| Parameter | Default  | Description                                                                                 |
| --------- | -------- | ------------------------------------------------------------------------------------------- |
| `start`   |          | Start of the date range: an ISO date (`2024-01-01`) or datetime; only the date part is used |
| `end`     |          | End of the date range, in the same format as `start`                                        |
| `type`    | `custom` | Type of date range                                                                          |
| `page`    | `1`      | Page number                                                                                 |
| `limit`   | `1000`   | Number of records per page, from 1 to 5,000                                                 |

## Limitations

* **Pagination:** 1,000 records per page by default, 5,000 at most (set with `limit`). Use `page` to get the next pages.
* **Pull cadence:** Once every 24 hours is recommended. Pulling more frequently won't give you fresher data and may trigger rate limiting.
* **Rate Limiting:** Userlane can limit the frequency of calls to ensure Quality of Service.
* **Event retention period:** Events are accessible for **60 days** after their creation.

## Authentication

This API is protected and requires authentication by a Bearer Token. Generate your token in the Userlane Portal under **Settings > API Token**. Tokens are issued per Userlane Manager and can be regenerated at any time.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.userlane.com/developers/analytics-api/getting-started-with-guide-events.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
