In Shopify, there’s an option to view the source of each order, specifically showing the last external link clicked before the purchase. This is useful for tracking where customers are coming from and measuring marketing performance.
So how can one see order attribution in WooCommerce based on the Last Click criteria? WooCommerce doesn’t provide this feature natively ***, but it does offer flexibility through plugins and custom scripts.
Is there a way to bring this information into WooCommerce Analytics or to generate a report like this in WooCommerce? There are certainly options to explore, but finding the right approach depends on your specific needs and setup.
*** WooCommerce Out of the Box Features
WooCommerce 8.6 introduced an order attribution feature, similar to Shopify, allowing you to track the source of each order.
This includes data such as the origin (where the customer came from), source (the platform or website that referred them), and medium (type of marketing channel).
These details help businesses understand the effectiveness of their marketing campaigns and customer journeys.
To access this, you can navigate to WooCommerce → Orders, and in the order details, you’ll see an “Order Attribution” tab. Clicking “Show Details” will reveal additional insights, such as device type, session page views, and UTM parameters:
This data is now part of WooCommerce’s default analytics when WooCommerce Analytics is enabled. It updates asynchronously and offers visibility into key conversion metrics to refine marketing strategies.
Plugins & Custom Code
Third-party plugins such as MonsterInsights (for Google Analytics) or Matomo can be integrated to track UTM parameters. Additionally, you can custom-code a solution using WooCommerce’s hooks and filters to track referral data, store it in custom fields, and generate reports based on the last click attribution model.
Personally, I use Metorik and I get this out of the box… if not, I’d look into the “_wp_http_referer” order custom field and see if you can find data in there.