virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
blog / 2026-11-24

Average order value by traffic source: formula and example

By Devendra Variya, co-founder of Virling. Published 2026-11-24.

Average order value by traffic source is what one order from each source is worth on average. Divide the revenue credited to a source by the orders credited to it in the same period: $6,000 from 100 organic search orders is $60. It tells you how much buyers from a source spend each time they order. It says nothing about the visitors who left without buying, so a source can have the highest average and still earn you little. Read it next to the number of orders and revenue per visitor.

To get the figures from your own totals, put each channel's revenue and orders in the average order value calculator.

What the number means

Average order value (AOV) is per order, not per customer. Someone who buys three times places three orders, so a source that brings back repeat buyers can have a modest average and still earn a lot per person. It is also an average, so it describes the typical order only when most orders are of a similar size.

Sources differ because the buyers differ. A product link in a review sends people to one item, a newsletter reaches people who already know the range, and a discount shared on one channel lowers the orders of that channel. The average tells you there is a gap. The orders tell you why.

The formula

average order value of a source = revenue from that source / orders from that source

For the averages to be comparable, use the same rules for every source:

  • One source per order. A buyer may have visited from several. Pick one rule, such as the latest visit that was not Direct, and keep to it.
  • One definition of revenue. Decide whether it includes tax and shipping, and whether it is before or after refunds.
  • The same dates for revenue and orders, and the same dates for every source.
  • Sums, not an average of averages. The overall figure is all revenue divided by all orders.

A worked example

Example only: made-up numbers for an imaginary store, not results from a real business. One month, revenue after discounts and before refunds, one order per buyer, and nobody came from two channels:

ChannelVisitorsOrdersRevenueAverage order valueRevenue per visitor
Organic search4,000100$6,000$60.00$1.50
Email1,50075$3,375$45.00$2.25
Paid2,50050$2,000$40.00$0.80
Referral6006$1,200$200.00$2.00
All8,600231$12,575$54.44$1.46
  • By average order value, referral is far ahead and email is third.
  • By revenue per visitor, email is first. Its orders are smaller, but 5% of its visitors ordered, against 1% for referral.
  • By revenue, organic search is first, with an ordinary average and the most orders.
  • The overall average is $54.44. Averaging the four channel averages would give $86.25, because six referral orders would weigh as much as 100 from search.

With orders per visitor as the conversion rate, the last column is the other two multiplied:

revenue per visitor = conversion rate × average order value

For email that is 5% × $45 = $2.25, and for paid 2% × $40 = $0.80. See what revenue per visitor is for the full method, and conversion rate by traffic source for the other half of it.

Why a high average from few orders misleads

Suppose the six referral orders were five of $60 and one of $900. The average is $200, and no buyer spent anything near that. Take the large order out and referral has five orders, $300 and an average of $60, the same as search. Its revenue per visitor falls from $2.00 to $0.50, so it drops from second place to last.

The large order is real money and belongs in the revenue. What it cannot do is tell you what the next referral order will be worth. Before you act on an average:

  • Read the order count first. Put it next to every average you share.
  • Remove the largest order and divide again. If the ranking changes, the average rests on one buyer.
  • Look at the median. Sort the orders and take the middle one, or the mean of the middle two. In the example it is $60, not $200.
  • Use a longer range until the result holds without the largest order.

How discounts and refunds change it

Discounts lower the average at the time of the sale, and refunds lower it later. Here is the made-up paid channel again. Its 50 orders were worth $2,500 at full price, buyers used $500 of discounts, and five $40 orders were later refunded in full:

DefinitionRevenueOrdersAverage order value
Before discounts$2,50050$50.00
After discounts$2,00050$40.00
After refunds, all orders$1,80050$36.00
After refunds, without refunded orders$1,80045$40.00
  • All four are correct answers to different questions. The third is what an order placed turned out to be worth, so it fits a comparison of sources. The fourth is the size of the orders that were kept, and it hides the refunds: a source where half the orders come back can look fine.
  • Revenue per visitor falls too, from $0.80 to $0.72 after refunds, whichever order count you use.
  • A low average may be the discount. If one channel carries a code and another does not, you are comparing offers as well as sources. See discount code attribution.
  • A partial refund lowers the average and leaves the order in the count.
  • Recent orders look better than they are until the return window has passed.

Keep refund rate by traffic source beside the average to see which sources lose the most after the sale.

How to read it in Virling

Virling joins each payment to the visits before it and credits it to one of them: by default, the latest visit in the last 90 days that was not Direct. A payment is the amount charged, less refunds. For Shopify and WooCommerce that is the order total, so any tax and shipping in it are included. Average order value is not a column in Virling, so you divide it by hand from revenue and payments per channel:

  1. Start with the Channels card. It lists visitors, revenue and revenue per visitor for every channel, with a chip that compares the row with your site average, and Refunded, the share of its payments refunded in whole or part. It does not list the number of payments.
  2. Click a channel to filter the page to it. Revenue is now that channel's, net of refunds, for the dates you picked.
  3. Read the payments. The Latest payments tab at the top of the dashboard shows how many payments are credited to that channel in the range. Use that count: inside the tab, the list is filtered, but the summary figures above it cover the whole site.
  4. Divide Revenue by that count. Refunded payments stay in the count, so this is the “after refunds, all orders” version above.
  5. Check the orders. The tab lists the 10 newest, each with its amount. To see every amount, open the Payments page. It lists all channels, with the source of each payment.

To skip the clicking, virling query channels --range 30d prints visitors, payments, revenue and revenue per visitor for every channel, and the Read API returns the same fields. The division is still yours. Source and campaign work the same way: click a row in the Source or Campaign tab of the Channels card.

  • Renewals are payments too. They keep the channel of the customer's first payment. With subscriptions, the result is the average payment rather than the average order.
  • Unattributed payments belong to no channel. The Matched revenue line under the five numbers shows how much revenue was matched to a visit and why the rest was not.
  • Amounts are in US dollars after conversion, so they can differ slightly from a store report in another currency.
  • Repeat orders count for the channel credited with each order. How that channel is chosen is in new vs returning customer revenue.

Every card is described in read your dashboard. For Shopify and WooCommerce, which channel brings your store orders explains what is read and how each order finds its visit.

Start free trial

What to do with the result

  • High average, low revenue per visitor. Few visitors buy. Check the landing page and who the source sends before you chase more of the same traffic. If most of its visitors are on phones, compare mobile and desktop revenue per visitor too.
  • Low average, high revenue per visitor. The source is working. Try a bundle or a free shipping threshold, and watch that the conversion rate holds. The free shipping threshold calculator shows whether the bigger orders cover the shipping.
  • Both low. Look at the discount and the product people land on, then at the source itself.
  • Both high, few orders. Worth more effort, as a test. Judge it again with more orders.

For paid sources, compare the revenue with what the visitors cost, and with your margin. A $200 order with a thin margin can be worth less than a $60 one.

Frequently asked questions

How do you calculate average order value by traffic source?

Credit each order to one source, then divide the revenue of a source by its number of orders in the same date range. $6,000 from 100 organic search orders is $60. For the overall figure, divide all revenue by all orders instead of averaging the averages.

Should average order value include refunds and discounts?

Use what the buyer was charged after the discount, and take refunds off when you compare sources, since that is the money you keep. Decide whether a fully refunded order stays in the order count, and use the same rule for every source.

Is the source with the highest average order value the best one?

Not necessarily. Average order value ignores visitors who did not buy, and how many orders there were. Compare revenue per visitor, total revenue and, for paid sources, what the visitors cost.

How many orders do I need before the average means anything?

There is no fixed number, because it depends on how much your order sizes vary. A quick test is to remove the largest order and divide again. If the ranking changes, use a longer date range or compare medians.

Why does average order value differ between traffic sources?

Sources bring different buyers to different pages. Product, discount, country, the share of returning customers and how ready people are to buy can all differ, so check which of them explains a gap before you change a budget.

Does Virling show average order value by channel?

Not as a column. Click a channel on the Channels card to filter the dashboard, then divide Revenue by the count on the Latest payments tab. Revenue is net of refunds. The Read API and the CLI return payments and revenue per channel in one table.

See the orders and revenue behind every channel

Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.

Start free trial See the demo