Skip to content
mentoor

Topic 5 of 5 · 4 min read

Measuring sales that come from agents

Goal: Identify agent-originated orders in an order log and say which signal separates them from ordinary visits.

You can only manage the agent channel if you can see it, so tag every agent referral and agent checkout and keep them apart from ordinary web visits. If agent orders are mixed into "direct" or "other", you will not know whether the channel grows, shrinks or loses money.

Check yourself · 1 of 3

What is the strongest way to know an order came from an agent?

Choose one answer

Why it matters

Standard web analytics assume a person with a browser. Agents can arrive in odd ways: as a visit with no usual referrer, as a request from a server, or as a protocol checkout with no page view at all. Reports then show "direct traffic" going up and nobody can explain it. You cannot decide whether to invest in agent data or checkout without separate numbers.

Two things to measure

  1. Referrals. A person clicks a link in an assistant's answer and lands on your page. The link can carry a tag you can read, and the visit may come from the assistant's domain. Some assistants add a source tag to the link; check what each one sends.
  2. Agent checkouts. An order that arrives through an agent protocol. Here the order record itself should say so.

Signals that separate agent orders

  • A source field on the order. The strongest signal: your checkout writes "channel = agent" and the agent's name.
  • Referrer or tag values. The referring domain or a source tag in the link.
  • Request details. The user-agent text in your server log, or the API route used, such as the protocol endpoint rather than the normal cart page.
  • Behaviour. No page views before the order, or an order created within seconds. Use this as a hint only, since fast human buyers exist.

Never rely on one weak signal alone. A user-agent string can be faked.

What to record for each order

Channel, agent name, the approval record id, order value, whether it was refunded and the reason. Then report monthly: orders, revenue, average order value, refund rate and error rate for agent orders next to web orders.

Before and after

Before: The order log has one line per order with "source: direct". Agent orders are hidden among them and the refund rate looks odd.

After: The same orders carry "channel: agent, agent: assistant-x, approval: ap-1042". The report shows 40 agent orders, with a refund rate you can compare to the web.

What goes wrong

  • Counting a visit as a sale. Referrals and orders are different numbers.
  • Over-trusting one signal. Behaviour alone mislabels fast humans as agents.
  • Averaging everything. A blended refund rate hides that agent orders may be refunded far more often.
  • Collecting too much. Log what you need for measurement and disputes, not customers' private details.

Examples

Reading an order log

Three orders: order 1 has "channel: agent, agent: assistant-x" and a protocol route. Order 2 has "source: direct", a normal browser and 6 page views. Order 3 has "source: direct", no page views and was created 4 seconds after the cart.

Order 1 is an agent order by the source field. Order 2 is a person. Order 3 is only suspected; its behaviour is a hint, so label it "unconfirmed" until another signal agrees.

A monthly report line

Agent orders: 40. Revenue: 3,200 euros. Average order: 80 euros. Refund rate: 12 percent against 5 percent on the web. The gap tells you to look at what agents misread, which a blended number would hide.

Key points

  • Agent referrals, where a person clicks through from an assistant, and agent checkouts, where the order arrives through a protocol, are two different things to measure.
  • The strongest signal is a source field your own checkout writes on the order, with the agent name.
  • Referrer, source tags, the user-agent text and the API route are supporting signals and can be faked.
  • Behaviour such as an order created within seconds is only a hint, never proof.
  • Report agent orders next to web orders with refund rate and error rate, not blended into one average.

Common mistakes

  • Leaving agent orders inside "direct" or "other", so the channel stays invisible.
  • Treating one weak signal, such as user-agent text, as proof.
  • Counting referral visits as if they were sales.
  • Reporting one blended refund rate for agent and web orders.

Check yourself · 2 of 3

An order was created 4 seconds after the cart with no page views, and the source field says "direct". How should you label it?

Choose one answer

Check yourself · 3 of 3

Why should you report agent orders separately from web orders?

Choose one answer

Practice items, not counted towards your mastery.

Start here