> 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-tooltip-engagement.md). Agents can also search and read this documentation through its [MCP server](https://docs.userlane.com/~gitbook/mcp).

# Getting started with Tooltip engagement

The Tooltips API gives you per-user, per-day engagement counts for the Userlane Tooltips (hints and beacons) in your application: how often each tooltip was shown, opened, and used to start a guide. Use it to pull tooltip engagement into your BI tool of choice (Power BI, Tableau, Looker, etc.) and measure which in-app help users actually read.

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).

## Typical use cases

* **Tooltip effectiveness:** Which tooltips do users open, and which do they ignore?
* **View and click rates over time:** Is a tooltip read more or less since you changed its text or placement?
* **Guide entry points:** Which tooltips send users into a guide?
* **Reach:** How many distinct users saw, opened, or clicked each tooltip in a period?

## Response

Each request returns one row per day, per tooltip, per user, within the date range you specify. A row appears only if the user had at least one visit, view, or link click on that tooltip that day. Results come back as JSON.

`start`: start date of the queried range

`end`: end date of the queried range

`data`: a page of aggregated tooltip engagement records, each with:

| Field                    | Description                                                                                                                    |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| `date`                   | Date of the activity (ISO date, for example `2026-09-14`)                                                                      |
| `tooltipId`              | ID of the tooltip, as a string (see [Resolving tooltip IDs](#resolving-tooltip-ids))                                           |
| `user.id`                | Userlane user ID                                                                                                               |
| `user.applicationUserId` | Your own user identifier. An empty string (not `null`) when no application user ID is mapped for the user                      |
| `visits`                 | Times the tooltip was loaded on a page for the user, whether or not they opened it. Shown as **Visits** in the Userlane Portal |
| `views`                  | Times the user viewed the tooltip. Shown as **Views** in the Userlane Portal                                                   |
| `linkClicks`             | Times the user started a guide from a link in the tooltip. Shown as **Link clicks** in the Userlane Portal                     |

`pagination`: the page size and the cursor for the next page:

| Field        | Description                                       |
| ------------ | ------------------------------------------------- |
| `limit`      | Number of records per page                        |
| `nextCursor` | Cursor for the next page. `null` on the last page |

## Calculating metrics

To reproduce the figures on the **Tooltip analytics** page of the Userlane Portal, sum the rows for the same tooltip and date range and use these formulas:

| Portal metric            | Formula                                  |
| ------------------------ | ---------------------------------------- |
| Total visits             | `sum(visits)`                            |
| Total views              | `sum(views)`                             |
| Total clicks             | `sum(linkClicks)`                        |
| View rate                | `sum(views) / sum(visits)`               |
| Click rate               | `sum(linkClicks) / sum(views)`           |
| Visitors                 | Distinct `user.id` with `visits > 0`     |
| Viewers                  | Distinct `user.id` with `views > 0`      |
| Users who clicked a link | Distinct `user.id` with `linkClicks > 0` |

Both rates are event-based, not per-user. Count distinct users across the whole range rather than adding up daily counts, because the same user appears on every day they were active.

The totals match the Portal when no segment is applied there. This endpoint has no segment filter: join on `user.applicationUserId` to segment the data yourself.

## Resolving tooltip IDs

Tooltip names are not included in the response. To match `tooltipId` to a name, open **Tooltip analytics** in the Userlane Portal and download the tooltip table as CSV. It lists each tooltip's ID, name, and type (Hint or Beacon).

`tooltipId` is returned as a string. It is normally a numeric ID, but some older records hold non-numeric values, so do not cast it to a number without handling the exceptions.

## Endpoint

`GET https://api.userlane.com/analytics/public/tooltips/property_id/{property_id}/aggregated`

## Path parameters

| Parameter     | Description                                        |
| ------------- | -------------------------------------------------- |
| `property_id` | Your Userlane property ID (lowercase alphanumeric) |

## Query parameters

| Parameter | Required | Default | Description                                                                                                     |
| --------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------- |
| `start`   | Yes      | None    | Start of the date range, inclusive. Accepts an ISO date (`2026-09-01`) or ISO datetime (`2026-09-01T00:00:00Z`) |
| `end`     | Yes      | None    | End of the date range, inclusive. Accepts an ISO date (`2026-09-30`) or ISO datetime (`2026-09-30T23:59:59Z`)   |
| `cursor`  | No       | None    | The `nextCursor` value from the previous response. Omit it for the first page                                   |
| `limit`   | No       | `1000`  | Records per page, from 1 to 5,000                                                                               |

## Date handling

`start` and `end` are inclusive UTC calendar dates, and both are required. The time-of-day part of a datetime is ignored, so `end=2026-09-30T00:00:00Z` and `end=2026-09-30T23:59:59Z` return the same data: all of 30 September.

There is no limit on the length of the range. Data is kept for two years, so a range that reaches further back returns only what is still stored.

Counts for the current day are written as events arrive, so they keep growing during the day. For a complete, reproducible extract, end the range at yesterday.

## Pagination

This endpoint uses cursor-based pagination, the same model as the Tasks API. There is no `page` parameter.

1. Send the first request without a `cursor`.
2. Read `pagination.nextCursor` from the response.
3. Send the next request with the same `start`, `end`, and `limit`, and that value as `cursor`.
4. Repeat until `nextCursor` is `null`, which marks the final page.

The cursor is opaque: do not build, parse, or modify it. Pass back exactly what you received. Rows are ordered by date, then tooltip, then user, and a complete walk returns every row exactly once.

## Limitations

* **Pagination:** Up to 1,000 records per page by default, and 5,000 at most. Use the cursor to page through longer ranges.
* **Tooltip names:** Not included. Join `tooltipId` to the CSV export from Tooltip analytics.
* **Segments:** No segment filter. Segment the rows yourself by joining on `user.applicationUserId`.
* **Editor previews:** Activity while previewing in the Userlane Editor is not counted.
* **Link clicks:** Only links that start a Userlane guide are counted.
* **Internal accounts:** Internal and test accounts are included, matching the Portal. Filtering them out in your BI tool will make your totals differ from the Portal.
* **Pull cadence:** Once every 24 hours is recommended. Pulling more often gives you no more complete data for past days and may trigger rate limiting.
* **Rate limiting:** Userlane can limit the frequency of calls to ensure Quality of Service.
* **Caching:** Results are cached for 5 minutes, so requesting the same page again within that window returns the same counts.
* **Data retention:** Data is kept for 2 years.

## Authentication

This API is protected and requires authentication by a Bearer Token. You can generate your token under **Settings > API Token** in the Userlane Portal.

## Next steps

* Try a request from the API reference.
* To see whether users who started a guide from a tooltip completed it, see [Getting started with Guide events](https://docs.userlane.com/developers/analytics-api/getting-started-with-guide-events.md) and [Getting started with Guide progress](https://docs.userlane.com/developers/analytics-api/getting-started-with-guide-progress.md).
* To compare tooltip engagement with feature usage, see [Getting started with Tags](https://docs.userlane.com/developers/analytics-api/getting-started-with-tags.md).
* To enrich tooltip data with user attributes, see [Getting started with Enduser data](https://github.com/Userlane/developer-docs/tree/main/docs/core-api/getting-started-with-user-data.md) (Core API).


---

# 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-tooltip-engagement.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.
