AI shopping assistant analytics measures how assistants such as ChatGPT, Gemini, Perplexity and Copilot turn product research into sales. It only works when the same product ID appears in your feeds, your product pages, your analytics events and your orders, and when orders are collected server-side. Without that, recommendations, visits and sales cannot be joined.
Triple Whale, Littledata and Kochava have written about getting stores ready for AI shoppers, mostly from a visibility angle. This post covers the measurement angle: the product identity and conversion signals you need in place so that assistant-driven sales show up in your reports and in your ad platforms.
The join problem
An assistant-driven sale touches four systems:
- A product feed the assistant or its platform reads, such as Google Merchant Center or an OpenAI commerce feed.
- A product page the assistant fetches and the shopper lands on.
- Analytics events recorded during the visit, such as
view_itemandadd_to_cart. - An order in your backend, with line items.
If the product is TRAIL-BLK-10 in the feed, 48291 on the page, trail-shoe in analytics and a SKU with a size suffix in the order, every report breaks at the seams. You can count AI referred sessions, but you cannot say which products assistants sell.
Step 1: Pick one ID per variant and use it everywhere
OpenAI's product feed reference is a good model. It asks for a stable item_id per item or variant, a group_id for the parent listing, and an optional offer_id, and says to keep all three stable when price, stock, title or images change. Google's product structured data uses sku and GTIN properties for the same purpose.
Map that ID consistently:
| Place | Field | Value |
|---|---|---|
| OpenAI feed | item_id | TRAIL-BLK-10 |
| Google Merchant Center | id | TRAIL-BLK-10 |
| Product page JSON-LD | sku | TRAIL-BLK-10 |
| GA4 ecommerce events | items[].item_id | TRAIL-BLK-10 |
| Meta and other conversion APIs | content_ids or equivalent | TRAIL-BLK-10 |
| Order line items | sku | TRAIL-BLK-10 |
If your systems already use different IDs, keep a mapping table and apply it in the server-side pipeline before events leave your infrastructure, rather than in each tag.
Step 2: Make product facts readable without JavaScript
Live fetchers such as ChatGPT-User usually do not run JavaScript. If price and availability render client side, the assistant reads a page without them. Put price, currency, availability and the product ID in server-rendered HTML and in merchant listing structured data.
Keep the page and the feed in sync. OpenAI's feed reference requires an explicit availability value and warns against placeholder strings. A price that differs between the feed and the page creates a bad experience at checkout and a confusing conversion trail.
Step 3: Record item-level events with consistent IDs
Follow the GA4 ecommerce event structure: view_item, add_to_cart, begin_checkout and purchase, each with an items array. Use the same item_id as the feed. Store the raw referrer and landing URL on the session so you can later filter for AI referred visits.
Separate agents from people before these events reach analytics. A browser agent that opens many product pages quickly will distort view to purchase rates if it is counted as a shopper.
Step 4: Collect the order from the backend
Send the purchase event from your order system when the order is created, with event_id equal to the order ID, the value, the currency and line items. Keep the browser purchase tag where it fires, and let the shared event_id deduplicate. This also covers orders completed inside an agent through a commerce protocol, which never reach a confirmation page. Our agentic commerce guide explains those flows.
Include refunds and cancellations as separate events so net revenue by product is accurate.
If you sell through marketplaces as well as your own store, add the sales channel to each order. An assistant may recommend your product and send the shopper to a marketplace listing instead of your site. Those sales will not appear in your own funnel, so a product that looks weak in your store data may be selling well elsewhere because of AI recommendations.
Step 5: Send item-level conversions to ad platforms
Ad platforms learn which products sell from the conversions they receive. Send server-side purchase events with:
event_idshared with any browser event- value and currency
- line items with the same product IDs as your feed
- hashed customer identifiers you have consent to share
- the click ID or platform reference when the visit carried one
For ChatGPT Ads, send the completed purchase to OpenAI as an order_created event through its Pixel, its Conversions API, or both. Our ChatGPT Ads measurement guide covers oppref and event setup. For Meta, the same order improves catalog based campaigns when content IDs match the catalog. See how to improve Meta Event Match Quality for the identity side.
Step 6: Build the product report
With the join in place, a weekly report can answer questions that were impossible before:
- Which products receive AI referred sessions, and from which assistants?
- Which of those products convert, and at what net revenue per session?
- Which products are fetched by AI assistants often but rarely visited or bought?
- Do assistant-driven orders have different refund rates or basket sizes?
Treat AI referred revenue as a floor. Some assistant influence arrives as direct traffic or branded search and cannot be credited without modeling.
A pre-launch checklist
- One stable ID per variant, identical across feed, page, events and orders.
- Price, availability and ID in server-rendered HTML and structured data.
- Feed and page values kept in sync on a schedule.
- Item-level GA4 ecommerce events with consistent IDs.
- Backend purchase events with shared
event_id, plus refund events. - Server-side conversions to each ad platform with matching product IDs and consent state.
- Agent traffic separated from human sessions.
Hardal is the first-party data and agentic analytics platform. We collect product and order events server-side, apply your ID mapping in one place, and send item-level conversions to Meta, Google, TikTok and OpenAI. Book a demo to review your product signal setup.