Install free
Docs

Getting started with TraceStocked.

Install the plugin, check that tracking works and read your sales from AI assistants.

Requirements

  • WordPress 6.5 or newer
  • WooCommerce 8.5 or newer, with order attribution on
  • PHP 7.4 or newer

Order attribution is on by default since WooCommerce 8.5. Check it in WooCommerce → Settings → Advanced → Features.

Install

  1. In WordPress, open Plugins → Add New Plugin.
  2. Search for TraceStocked. The plugin is listed in the WordPress.org plugin directory.
  3. Click Install Now, then Activate.
  4. Open WooCommerce → TraceStocked.

No access to the plugin search? Download the ZIP and upload it in Plugins → Add New Plugin → Upload Plugin.

Past orders are checked in the background within a few minutes. The Tracking tab shows the progress.

Overview

The Overview tab shows sales from AI assistants for 7, 30 or 90 days or 12 months:

  • AI revenue and its share of your store revenue, in your store currency, after refunds.
  • Visits from AI assistants, orders per 100 visits and the average AI order next to your store average.
  • By assistant: visits, orders, revenue, average order and share for each assistant.
  • Ordered on that visit and Came back later to order.
  • Latest AI orders with the page each shopper landed on.

Orders count when they have one of the statuses chosen in Settings, by default Processing and Completed.

Tracking

TraceStocked uses two sources:

  • WooCommerce order attribution records the referrer and utm_source of the session in which the order was placed. It works for new and past orders.
  • The storefront script counts visits from assistants and sets a first-party cookie, so an order placed on a later visit within the attribution window is still credited. Visits are counted from the day you install the plugin.

The Tracking tab shows the status of each source, the assistants it recognizes and a test link that opens your store as if you came from ChatGPT.

Some assistant apps open links without telling the site where the visitor came from. Those visits look like direct traffic to every analytics tool. AI answers inside Google Search and Bing Search count as search.

Settings

  • Attribution window: how many days a shopper who came from an assistant is remembered, 30 by default, up to 90. Set 0 to use no cookie.
  • Order statuses: which orders count as sales.
  • Assistants: turn off any assistant you do not want to track.
  • Orders list: show or hide the AI source column.

Privacy

  • Visits are stored only as daily counts per assistant. The plugin does not read, store or hash IP addresses.
  • The cookie tracestocked holds the assistant, the time and the landing page. With a consent plugin that supports WP Consent API, it is set only for shoppers who allowed statistics cookies.
  • Nothing is sent to us or to any other service.
  • Suggested text for your privacy policy is added in Settings → Privacy.

Pro

TraceStocked Pro is an add-on to the free plugin.

  1. Install and activate the free TraceStocked plugin.
  2. After checkout, open the email from Stocked Labs. It has the Pro download and your license key. Both are also in your customer account.
  3. Open Plugins → Add New Plugin → Upload Plugin, choose the tracestocked-pro zip, click Install Now, then Activate.
  4. Open WooCommerce → TraceStocked → Pro, click Activate license and paste your license key.

What Pro adds

  • Change and chart: AI revenue, orders, visits and share against the previous period, and a chart by day, week or month.
  • Products and landing pages: what people buy after an AI visit, and the pages assistants send them to, with visits and orders.
  • Orders filter and export: filter the WooCommerce orders list by assistant, and export AI orders to CSV.
  • Weekly email: a short report every Monday morning, to the addresses you choose.
  • Your own sources: add an assistant or an AI campaign by name, domains and utm_source.

Updates for Pro appear in Dashboard → Updates while your license is active. To move Pro to another site, deactivate the license on the old site first.

For developers

  • tracestocked_sources filters the list of assistants (key → label, domains, utm_source values).
  • tracestocked_order_source filters the source given to an order before it is saved.
  • tracestocked_order_tagged runs after an order gets its source.
  • tracestocked_visit_counted runs after a visit from an assistant is counted.

Troubleshooting

No visits are counted

Open the test link on the Tracking tab in a private window, then reload the Overview. Plugins that combine or delay scripts must not block track.js, and the REST API must be reachable.

Past orders do not show up

They need WooCommerce order attribution data. Orders placed while it was off, or before WooCommerce 8.5, have no source. The check runs through WP-Cron in batches; the Tracking tab shows how far it is.

Numbers differ from Google Analytics

Google Analytics counts sessions and may miss shoppers who block it. TraceStocked counts orders in WooCommerce and visits once per browser tab session. Both are right about what they measure.

Still stuck? Contact us.