> Site index: https://usehardal.com/llms.txt
> Every content route also serves markdown at <url>.md

# See Which AI Assistant Drives Each Product Sale

The AI Focus toggle in Commerce > Items shows which AI assistant, ChatGPT, Perplexity, Gemini, Claude or Copilot, drove each product view and sale.

Source: https://usehardal.com/blog/ai-focus-item-attribution-by-ai-platform
Published: 2026-11-26T12:00:00
Updated: 2026-11-26T14:00:00
Author: Ikbal Turgut
Category: Hardal Guides

---

If you track AI referral traffic, you already know that ChatGPT, Perplexity, Gemini, Claude and Copilot send visitors who buy things. The question that follows is: which assistant sends the visitors who buy which products?

The AI Focus toggle in Commerce > Items answers that question. Enable it and each product's attribution breakdown shows only AI assistant sessions, with a Platform column naming the assistant.

## What changed in the dashboard

In Commerce > Items, with Attribution turned on, there is now an AI Focus toggle. When you enable it:

1. The expanded attribution rows under each item are limited to AI assistant sessions.
2. A Platform column appears next to Source, showing which assistant sent the visitor (ChatGPT, Perplexity, Gemini, Claude, Copilot, or Other AI).
3. A summary line shows how many rows on the current page have AI assistant traffic, for example "6 of 50 rows on this page have AI assistant traffic in this period".

Only item rows that have AI traffic can be expanded. The item list and its totals do not change.

The toggle state is kept in the page URL. It survives a reload, works in a shared link, and stays on when you change the timeframe. Opening the page without the toggle parameter (or going Back) turns it off.

With AI Focus off, attribution behaves exactly as before.

## How to use it

1. Open Commerce > Items in Beacon.
2. Turn on Attribution if it is not already enabled.
3. Enable the AI Focus toggle.
4. Expand any item row that has AI traffic to see the Platform breakdown.

## Why this matters

Knowing that AI drives sales is useful. Knowing which assistant drives sales of which products is actionable.

If ChatGPT sends visitors who browse a lot but Perplexity sends visitors who buy, your content strategy for each should differ. If a single product gets most of its revenue from Claude referrals, that product's listing is working in Claude's context, and you can study why.

The platform breakdown also helps you spot shifts. If a new assistant starts appearing in Other AI with meaningful volume, you know to add it to your tracking and content strategy before the opportunity passes.

## Reports API

For teams who query the Reports API directly, the same filter is available as a request parameter.

The `/v1/reports/commerce/items/details` endpoint (kind `attribution`) accepts an optional boolean field: `aiFocus`. When it is true, the response filters to sessions from AI assistants only and adds a `platform` field to each row.

The platforms Hardal recognises are:

- ChatGPT
- Perplexity
- Gemini
- Claude
- Copilot
- Other AI (for assistants not yet in the list)

Without the flag, or with `aiFocus: false`, the response is unchanged from before: all sessions, no platform field.

## How the filter works

The AI Focus filter uses the same AI source recognition as the Acquisition report, now with improved matching. A session counts as AI when its source or medium matches a known AI host, regardless of whether the host includes `www.`, is a full URL, or is a subdomain. For example, `chatgpt.com`, `www.chatgpt.com`, `https://chatgpt.com` and `chatgpt` all map to ChatGPT.

If the source names no platform but the medium does (for example, source `newsletter` and medium `chatgpt`), the filter uses the medium before falling back to Other AI. This means hand-tagged campaigns that name an AI assistant in the medium are counted correctly.

## How to call the endpoint

The commerce item attribution endpoint is `POST /v1/reports/commerce/items/details`. Pass the tenant ID and timeframe as query parameters, and the attribution details in the request body.

First, get the item keys you want to query from `GET /v1/reports/commerce/items`. That endpoint returns a list of items with their `itemKey` values, grouped by the dimension you choose (such as `item_name`, `item_id`, `brand` or `category`). Pass up to 50 of those keys to the details endpoint.

Here is an example request with AI Focus enabled (example values):

```
POST /v1/reports/commerce/items/details?tenantId=a1b2c3d4-e5f6-7890-abcd-ef1234567890&timeframe=last30days
```

```json
{
  "kind": "attribution",
  "groupBy": "item_name",
  "itemKeys": ["Wireless Earbuds Pro"],
  "aiFocus": true
}
```

The response includes one entry per item, each with rows broken down by source, medium and campaign. With `aiFocus: true`, each row also carries a `platform` field. Here is an example row (example values):

```json
{
  "source": "chatgpt.com",
  "medium": "referral",
  "campaign": null,
  "platform": "ChatGPT",
  "view_item_count": 142,
  "add_to_cart_count": 38,
  "orders": 12,
  "items": 14,
  "revenue": 1079.88
}
```

Each row tells you which source, medium, campaign and AI platform drove the views, add-to-carts and purchases for that product. The same product can have multiple rows when different sources or platforms sent visitors who engaged with it.

## Counting rules

Views and add-to-cart counts come only from AI sessions when the flag is on. A multi-item order counts once per item under the session that placed the order. Items keep crediting the purchase session, which means the order's session, not a later visit.

These rules match how non-AI item attribution works. The only difference is the filter and the added `platform` field on each row.

If you pass an invalid value for `aiFocus`, such as the string `"yes"` instead of a boolean, the API returns HTTP 400. The field must be a boolean or omitted.

## Hardal MCP

Hardal MCP does not expose the `aiFocus` parameter or the `platform` field yet. If you use Claude, ChatGPT or another assistant with [Hardal MCP and the Reports API](https://usehardal.com/blog/hardal-mcp-reports-api), AI Focus is available only through the dashboard or REST API for now.

## Related

If you already have an API key from the Connections page in Beacon, add `"aiFocus": true` to the body of your item attribution requests and check the `platform` field on each row in the response.

If you do not have an API key yet, see [Hardal MCP and the Reports API](https://usehardal.com/blog/hardal-mcp-reports-api) for how to create one on the Connections page in Beacon. The endpoint and authentication are the same.

For background on measuring AI traffic more broadly, including sessions that arrive without a referrer, see [AEO Attribution: Measure Revenue from Organic AI Answers](https://usehardal.com/blog/aeo-attribution-measuring-organic-ai-traffic) and [Why AI Referrals Look Like Direct Traffic](https://usehardal.com/blog/dark-ai-referrals-attribution-gaps).

Hardal is the first-party data and agentic analytics platform. We help enterprises send accurate signals to their ad platforms and grow revenue, using server-side data from their websites, mobile apps and AI agents.
