WooCommerce · Guide
How to Add Order Source in WooCommerce (Step by Step)

Short answer
Go to WooCommerce, Settings, Advanced, Features and tick Order Attribution, which is built in from WooCommerce 8 point 5 onward. New orders then show their origin, source type, campaign and device in an Order attribution box and an Origin column on the orders list.
Key takeaways
- Order Attribution is built into WooCommerce from version 8.5.
- Turn it on under Settings, Advanced, Features.
- Each order shows origin, source type, campaign and device.
- UTM-tagged links give exact campaign names.
- Record phone and offline orders with a note or custom field.
How do you add order source in WooCommerce?
Turn on Order Attribution under WooCommerce > Settings > Advanced > Features; WooCommerce then records where each order came from and shows it in an Origin column and on every order screen.
Order Attribution has been part of WooCommerce core since version 8.5, released in January 2024. It is switched on by default for many stores, so you may already be collecting the data.
It answers a simple question: did this sale come from Google, a newsletter, a social post, a paid ad or someone typing your address? That helps you spend time and money on the channels that actually sell.
If you need to record sources that WooCommerce cannot see, such as phone orders or word of mouth, you can add a manual field too. Both methods are covered below.
| Method | What it captures | Effort |
|---|---|---|
| Built-in Order Attribution | Referrer, UTM tags, device, origin | Turn on once |
| UTM-tagged links | Exact campaign names | Tag every campaign link |
| Checkout question | What the customer says | Add a field |
| Admin order note or custom field | Phone and in-person orders | Per order |
| Analytics tools | Full journey and conversion paths | Separate setup |
Step 1: Check your WooCommerce version
Go to Plugins in your dashboard and confirm WooCommerce is on version 8.5 or newer, because older versions do not include Order Attribution.
If you are behind, update with care. Take a backup first, and test on staging if your store relies on many extensions. Our guide on how to update WooCommerce safely covers the full process.
The WooCommerce plugin page on WordPress.org lists the current version and changelog. Newer versions have added improvements over time, such as better handling of admin-created orders and extra reporting. Staying current gives you the most complete data.
Step 2: Turn on Order Attribution
Go to WooCommerce, then Settings, then Advanced, then Features, tick Order Attribution and click Save changes.
The official Order Attribution Tracking documentation shows the same setting and describes what each field means.
Once it is on, WooCommerce starts tracking new visits. It cannot go back in time, so orders placed before you turned it on will show no source.
If the checkbox is missing, your WooCommerce version is too old, or a plugin or host setting has hidden the feature. Update first, then check again.
Step 3: View the source on an order
Open any new order under WooCommerce, then Orders, and look for the Order attribution box on the right of the edit screen.
The box shows details such as:
- Origin, a short summary like Source: Google or Direct.
- Source type, for example organic, referral, UTM, direct or admin.
- Source and medium, from UTM tags or the referrer.
- Campaign, when the link carried a UTM campaign tag.
- Device type, such as mobile, tablet or desktop.
- Session page views, how many pages the customer viewed in that visit.
Some fields appear only when the data exists. A customer who typed your address directly will show far less than one who clicked a tagged email link.
Step 4: Use the Origin column on the orders list
The Orders list shows an Origin column, so you can scan where recent sales came from without opening each order.
If the column is hidden, click Screen Options at the top of the Orders screen and tick Origin.
Origin values are short, for example Direct, Organic: Google or Source: Newsletter. That is enough to spot trends at a glance.
For deeper analysis, export orders with their attribution fields. Our guide on how to export WooCommerce orders to CSV explains the built-in and plugin options.
If your orders list loads slowly, the cause is usually unrelated to attribution. Our guide on a slow WooCommerce admin orders page covers the common fixes.
Step 5: Tag your marketing links with UTM parameters
Add UTM tags to every link in emails, ads and social posts so WooCommerce records the exact campaign, not just the website that sent the visitor.
UTM tags are extra parameters at the end of a URL, such as utm_source, utm_medium and utm_campaign. A tagged newsletter link might look like this:
https://example.com/shop/?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale
Google's Campaign URL Builder creates these links for you, so you do not have to type them by hand.
Keep names consistent. If one email says newsletter and the next says Newsletter or email-list, your reports split one channel into three.
Many email and ad platforms add UTM tags automatically. Check their settings before tagging by hand, so you do not end up with duplicate parameters.
Step 6: Add a manual source for phone and offline orders
For orders you create in the admin, record the source in an order note or a custom field, since no browser visit exists to track.
When staff create an order under Orders, then Add order, WooCommerce marks its source type as admin. That tells you the order was manual, but not why the customer called.
The quickest fix is a private order note such as Source: Phone, saw flyer. It is free, but notes are hard to report on later.
A custom field is better for reporting. In the order screen, the Custom Fields box lets you add a key such as order_source with a value like phone, event or referral. Keep a fixed list of values so reports stay clean.
Step 7: Ask customers at checkout
Add a How did you hear about us? question to checkout to capture word of mouth, podcasts and other sources no tracking can see.
Self-reported answers fill gaps that automatic tracking misses. A customer who heard a podcast, then searched your name, shows up as organic search, but they will happily tell you about the podcast.
Recent WooCommerce versions include an additional checkout fields API for the block-based checkout, which developers can use to add a field. Checkout field editor plugins offer the same thing without code; check that any plugin supports the checkout you use.
Make the field optional and use a short dropdown. A long required question adds friction to checkout. Our guide on customizing the WooCommerce checkout covers the wider options.
How do you report on where orders come from?
Use the Order Attribution report in WooCommerce Analytics where your version has it, or export orders and summarise them in a spreadsheet.
The Order Attribution report documentation explains the report and where to find it. Menus can change between versions, so follow the doc for your release.
If you have not set up Analytics yet, our guide on how to set up WooCommerce Analytics walks through it.
Look at more than order counts. A channel with fewer orders but higher average order value, or fewer refunds, may be worth more than a busier one.
Review sources monthly. Seasonal patterns and one-off campaigns can make a single week look misleading.
What are the limits of order attribution?
WooCommerce records the last visit before purchase, so it can miss earlier touchpoints, ad-blocked sessions and journeys across devices.
The tracking script stores visit data in the browser, based on the open-source Sourcebuster library. If a shopper clears cookies, uses a strict privacy setting or switches from phone to laptop, the original source can be lost.
A customer who first found you through an ad, then came back days later by typing your address, may show as direct. That is normal for last-touch tracking.
For a fuller picture, compare WooCommerce data with a dedicated analytics tool. Our guide on adding Google Tag Manager to WordPress is a starting point for that setup.
Does order attribution affect privacy and consent?
Yes, it stores visit data in the shopper's browser, so mention it in your privacy and cookie policy and check how it works with your consent tool.
The WooCommerce documentation explains which data is collected and how it interacts with consent management. Read it before relying on the feature in regions with strict cookie rules.
Our guide on making WooCommerce GDPR compliant covers the wider privacy steps. This is general information, not legal advice; check your obligations with a qualified adviser.
If you decide not to track sources at all, untick Order Attribution in the same Features screen. Existing data stays on past orders unless you remove it.
Frequently asked questions
Does WooCommerce track where orders come from?
Yes. Since version 8.5, WooCommerce includes Order Attribution, which records the origin, source type, campaign and device for new orders. Turn it on under WooCommerce settings in the Advanced tab, under Features.
Why does my order show Direct as the source?
Direct means WooCommerce saw no referrer or UTM tags for that visit. The customer may have typed your address, used a bookmark, clicked an untagged email link, or had tracking blocked by privacy settings.
Can I see the source for old orders?
No. Order Attribution only records visits after it is turned on. Orders placed earlier have no source data, though you can add a manual note or custom field to important past orders.
How do I record the source of a phone order?
Create the order in the admin, then add a private note or a custom field such as order_source with a value like phone. Use a fixed list of values so you can filter and report on them later.
Do I need Google Analytics if WooCommerce tracks order source?
Not for basic answers. WooCommerce shows the last source before each sale. An analytics tool adds the full journey, traffic that did not buy and conversion paths across visits, which helps with deeper marketing decisions.
Sources
- Order Attribution Tracking WooCommerce Documentation
- WooCommerce Analytics: Order Attribution Report WooCommerce Documentation
- WooCommerce 8.5.0 Released WooCommerce Developer Blog
- Campaign URL Builder Google Analytics Demos and Tools
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


