Description
More shoppers now ask an AI assistant what to buy and click through to the store it suggests. In most analytics tools those visits are lost among referrals or counted as direct traffic, so it is hard to tell whether AI assistants sell anything for you.
TraceStocked answers that inside WooCommerce. It recognizes visitors who arrive from ChatGPT, Perplexity, Microsoft Copilot, Gemini, Claude and other assistants, counts the visits, and credits each order to the assistant that brought the shopper.
What you see
- Revenue, orders and visits from AI assistants for the last 7, 30 or 90 days or 12 months.
- Share of your store revenue that came from AI assistants, and the average AI order next to your store average.
- A table by assistant: visits, orders, revenue, average order and share.
- Orders placed on the visit itself and orders from shoppers who came back later.
- The latest orders from AI assistants with the page each shopper landed on.
- An “AI source” column in the WooCommerce orders list and a box on each order.
Works with your past orders
Since WooCommerce 8.5, WooCommerce order attribution records where each order came from. TraceStocked reads that history after install, so orders from AI assistants placed before you installed it show up too.
Assistants it recognizes
ChatGPT, Perplexity, Microsoft Copilot, Gemini, Claude, DeepSeek, Grok, Meta AI, Mistral Le Chat and You.com, by the referrer and by utm_source (ChatGPT adds utm_source=chatgpt.com to links). You can turn any of them off.
Light and private
- A small script runs on the storefront and does nothing unless the visitor came from an AI assistant. It works with page caching.
- Visits are stored only as daily totals per assistant. The plugin does not read, store or hash IP addresses. A repeat visit in the same browser tab session is not counted again.
- A first-party cookie remembers the assistant for the attribution window you choose (30 days by default, or off). With a consent plugin that supports WP Consent API, the cookie is set only for shoppers who allowed statistics cookies.
- Nothing is sent to us or to any other service. The data stays in your WordPress database.
- Suggested text for your privacy policy is added to Settings > Privacy.
Good to know
- Some assistant apps open links without telling the site where the visitor came from. Those visits look like direct traffic to every analytics tool, including this one.
- AI answers inside Google Search and Bing Search come from google.com and bing.com, so they count as search, not as assistants.
- Purchases completed inside an assistant’s own checkout are reported by that assistant’s merchant program, not by your store’s referrer data.
TraceStocked Pro
The free plugin shows how much AI assistants sell for you. TraceStocked Pro is a paid add-on that shows what they sell and how it changes:
- Daily chart of AI revenue and orders, and the change against the previous period.
- Products and categories people buy after an AI visit.
- Landing pages that assistants send people to, with visits and orders.
- Filter the WooCommerce orders list by assistant, and export AI orders to CSV.
- Weekly email report.
- Your own sources: add a domain or utm_source for a new assistant or your AI campaigns.
TraceStocked is not affiliated with or endorsed by OpenAI, Perplexity, Microsoft, Google, Anthropic or any other company named here. All product names are trademarks of their owners.
Installation
- Install and activate WooCommerce 8.5 or newer.
- In WordPress, go to Plugins > Add New, search for “TraceStocked” and click Install, then Activate.
- Open WooCommerce > TraceStocked. Past orders are checked in the background within a few minutes.
- Make sure WooCommerce order attribution is on (WooCommerce > Settings > Advanced > Features). The Tracking tab shows its status.
FAQ
How do I know if ChatGPT sends me sales?
Install TraceStocked and open WooCommerce > TraceStocked. The Overview shows visits, orders and revenue from ChatGPT and other assistants. Orders placed before the install are found through WooCommerce order attribution.
Doesn’t Google Analytics already show this?
Google Analytics lists AI assistants among many referral sources and can lose the link between a visit and an order when a shopper comes back later or blocks analytics. TraceStocked works inside WooCommerce, ties each order to the assistant, and shows only what matters for AI traffic. You can use both.
What is the difference between “Ordered on that visit” and “Came back later to order”?
“Ordered on that visit”: the shopper came from the assistant and ordered in the same session. “Came back later to order”: the shopper first came from the assistant and ordered on a later visit within the attribution window.
Does it slow down my store?
No. The storefront script is about 1 KB and returns right away for visitors who did not come from an assistant. Reports are built in the admin with a few database queries.
Is it GDPR friendly?
TraceStocked does not read or store IP addresses and keeps no profile of visitors: visits are daily totals per assistant, and on an order it saves only the assistant name, whether the shopper came back later, and the landing page. Nothing leaves your site. The only cookie holds the assistant name, the time and the landing page. If you use a consent plugin with WP Consent API, the cookie follows the shopper’s choice. You can also set the attribution window to 0 to use no cookie at all.
Does it work with the block checkout and High-Performance Order Storage?
Yes, with both the block and the classic checkout, and with both order storage options.
Why are some AI visits missing?
The browser tells the site where a visitor came from. Some apps and privacy settings remove that information, so the visit looks direct. ChatGPT links carry utm_source=chatgpt.com, which TraceStocked reads even when the referrer is missing.
Can I add an assistant that is not on the list?
Developers can add sources with the tracestocked_sources filter. TraceStocked Pro lets you add them in the settings.
What does Pro add?
A daily chart, change against the previous period, products and landing pages behind AI sales, an orders list filter, CSV export, a weekly email report and your own sources. See TraceStocked Pro.
Screenshots
Changelog
0.1.1
- Visit counting no longer uses the visitor’s IP address in any form. Repeat visits are skipped in the browser instead.
0.1.0
- First version: visits and orders from AI assistants, Overview by assistant, past orders from WooCommerce order attribution, AI source column and order box, settings.




