> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.golf/llms.txt
> Use this file to discover all available pages before exploring further.

# Product Analytics

> See what product analytics Agent Golf records about the use of the product, where it keeps them, who can read them, and how a deletion removes them.

Agent Golf records product analytics to see where new customers stop during setup, how uplink instances run, and how sessions use models. Agent Golf records them in its own cloud and sends them to no third party.

## Rules

Agent Golf follows these rules for product analytics:

1. A row that compares customers holds no workspace ID and no organization ID. It holds only a workspace key: a keyed hash (HMAC-SHA-256) of the workspace ID. Only the service that writes the rows has the secret of the hash.
2. Each report that compares customers shows only groups of at least 5 workspaces. A smaller group is not in the report.
3. Product analytics never hold session content, session titles, or pull request data.
4. When Agent Golf purges a deleted workspace, it deletes the product analytics of the workspace. When it purges a deleted organization, it does this for each workspace of the organization.
5. This page states these rules.

## What Agent Golf records

Each record holds an event name, the time of the event, and opaque IDs: the organization, the workspace, and the user, when the event has them. A record holds no email address, name, title, URL, IP address, or browser user agent.

| Data | Contents |
| - | - |
| Setup milestones | That a user created an account, an organization, or a workspace, accepted an invitation, connected GitHub, turned on Cloud Uplink, created an Uplink key or a publishing key, skipped a setup step, or selected **Finish Later**. |
| First-use milestones | The first time that an uplink instance reports, that a harness session starts, that each Uplink path sends data, that Caddie processes a pull request, and that Agent Golf verifies an attribution in the workspace. A milestone holds no data of the pull request or the session. |
| Billing milestones | That a checkout started or completed, and that a payment method was added. A checkout can also name the plan. |
| Signup source | The plan that the signup link named, the campaign values of the link (`utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`), the Google ad click IDs of the link (`gclid`, `gbraid`, `wbraid`), and the Google Analytics client ID of the visit. Agent Golf uses these values only in its own reports, and never sends them back to Google. |
| Uplink instance report | Once each UTC day for each uplink instance: the instance ID, its Uplink release, whether it is a Cloud Uplink instance or a Self-Hosted Uplink instance, the start time of its process, and the totals since that start of accepted and rejected requests, received records, and errors. |
| Session summary | After a session has had no new activity for a time: the harness, the main model, the start day, the length, the largest prompt of one model request in tokens, the number of context compactions, model requests, and failed tool calls, and the cost. Agent Golf stores it only with a workspace key and a session key. See [Session summaries](#session-summaries). |

Product analytics record no page views and no clicks in the dashboard.

### Session summaries

A session summary leaves out the workspace ID, the organization ID, the user, and the conversation ID. The service that writes it replaces the workspace ID with the workspace key, and a random session reference with a session key. Reports read session summaries only in groups of at least 5 workspaces, for each week and harness, or for each week, harness, and model.

A later change of the session replaces its summary.

## Where Agent Golf keeps the data

Agent Golf keeps product analytics in the ClickHouse database `product_analytics` on Agent Golf infrastructure. On their way there, the events stay for a short time in the Agent Golf product database and in an internal message queue, also on Agent Golf infrastructure.

The **History Retention** windows do not apply to product analytics. Agent Golf keeps them until it purges the workspace or the organization. See [Deletion](#deletion).

## Who can read the data

Agent Golf staff read product analytics through Lightdash, a reporting tool that Agent Golf runs on its own infrastructure. Lightdash reads with one read-only database user. That user can read only:

* The product events, with their opaque IDs.
* The setup funnel reports, which Agent Golf builds from the product events.
* The two session summary reports, which show only groups of at least 5 workspaces.
* The list of excluded organizations.

The user cannot read the session summaries row by row, and cannot change data.

## Internal and test organizations

Agent Golf keeps a reviewed list of its own organizations and test organizations. The setup funnel reports leave out each user whose first organization is on the list. Agent Golf writes no session summary for these organizations, so they never count toward a group of 5 workspaces. An organization that joins the list later keeps the summaries that Agent Golf wrote before.

## Deletion

When you [delete a workspace](https://docs.agent.golf/account/workspace.md), Agent Golf purges it a few hours later. The purge deletes the product events of the workspace from the message queue and from ClickHouse, and deletes the session summaries of its workspace key. Agent Golf then writes no later event of the workspace.

When you delete an organization, Agent Golf purges each of its workspaces as above, then purges the organization. The organization purge deletes the product events of the organization.

A data deletion that keeps the workspace, such as [Delete Usage Data](https://docs.agent.golf/account/data-retention.md#delete-usage-data) or [Delete Organization Data](https://docs.agent.golf/account/data-retention.md#delete-organization-data), does not delete product analytics.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.