Mobile App Refresh Campaign [Banner] 2024

Product Icon


by  Woo
Save time with automated sync between WooCommerce and your Xero account.

Add Xero tracking categories support

Add the ability to set the tracking category(s) for invoices sent to Xero.

Xero has the ability to add tracking categories to items, so you can break down income & expenditure by category. For example, like to separate things out by sales channels. So, it would be very useful if invoices coming from WooCommerce were automatically tagged with the right sales channel.


Current Status


Last updated: January 6, 2020


Log in to comment on this feature request.

  1. nemiahuk says:

    The code has been removed from my other comment, so it’s not correct as displayed, sorry guys 🙁

  2. nemiahuk says:

    We had to add Xero tracking category support ourselves. It’s a shame this project isn’t open-source we could submit a PR.

    If you want to hard code a tracking category in yourself here’s a quick hack..

    includes/class-wc-xr-line-item.php line 595 +

    $xml .= ‘My Category NameMy Option Name’;

  3. Sam Grantham says:

    The default tracking categories set on the Customer level aren’t even populating. They’re literally called “defaults”, and you can’t even get them to DEFAULT populate into the empty tracking category fields from WooCommerce invoices. It really should not be that difficult to allow this. It’s really quite baffling. This has been an issue since 2020…

  4. Peter says:

    You can already do this in the Xeroom WooCommerce to Xero plugin.

  5. trophymade says:

    Please add this feature

  6. DanT says:

    Yeah, really need this badly now! Considering moving to Shopify : (

  7. lukas says:

    yup, it’s disappointing this is missing. a filter hook similar to this one would be enough: ‘woocommerce_xero_line_item_item_code’

  8. vanni says:

    is a great feature of xero, we ask you to implement it

  9. Bryan Hoffman says:

    We are currently separating sales categories manually, which is time consuming. Having product categories automatically mapped to Xero sales categories would be fantastic.

  10. Anonymous says:

    At present, there doesn’t appear to be the automated functionality to add what Xero calls ‘Tracking Categories’ to sales invoices pushed through directly from WooCommerce.

    This would be a great feature as it would make the plug-in 100% automated

  11. Matt Lee says:

    This feature of Xero is being used more and more, so it would be great to automate this coming from Woo. Even if it was just a filter like woocommerce_xero_line_item_account_code.

  12. darren says:

    this would be bloody useful