How do I see whether AI agents buy on my site?
Mark the moment that matters with one attribute, data-agent-goal, or mark a tool as a goal. Agent Tracking then counts conversions reached by agents separately from people, and shows whether the agents that called your tools actually got to the end.
By Gorden Wübbe · Updated 2026-09-08
Why a tool call is not a sale
An assistant can add to the cart, fill the form and still fail at checkout because a field it cannot see is required. The Tools view shows the call; only a goal shows the completion. The distance between the two is your agent conversion rate, and it is usually the most surprising number in the dashboard.
Step 1: mark the goal
Put data-agent-goal on the element that means done: the order button, the booking confirmation, the signup submit. When it is clicked or the form is submitted, the snippet records a conversion with the goal's name.
<button type="submit" data-agent-goal="order_placed">Place order</button>
Step 2: give agents a tool worth finishing
If your site exposes WebMCP tools, the snippet wraps them automatically. Register the checkout tool as the specification says and every call is recorded with duration, outcome and the names of the input keys.
await navigator.modelContext.registerTool({
name: "add_to_cart",
description: "Add a product to the cart by SKU.",
inputSchema: { type: "object", properties: { sku: { type: "string" }, qty: { type: "integer" } }, required: ["sku"] },
execute: async ({ sku, qty }) => { /* your code */ },
});Step 3: read Conversions next to Tool calls
The overview shows both per day. The Tools view shows, per tool, how many calls failed and with which error class, which is where the lost purchases are. A tool with a good success rate and no conversions is a checkout agents cannot finish; a goal with conversions and no tool calls is people, not agents.
What you will not see
No order value, no customer, no basket contents. The conversion carries the goal name, the page and the agent class, nothing else. If you want revenue per agent, join the goal name with your own order data by time; the dashboard deliberately does not hold it.
In short
Does this work without WebMCP tools?
Yes. data-agent-goal works on any button or form. Tool calls are the extra layer for sites that publish tools.
Can a person trigger an agent conversion?
The conversion is attributed to an agent when the session was classified as one, from the referrer or user agent. A person arriving from ChatGPT who then buys is an AI referral conversion; a plain visitor is not counted as an agent.