Documentation / Plugins / WooCommerce / Codex / Snippets / Frontend Snippets How can we improve this documentation? This feature is not an official support channel, if you need support for one of our products please visit our Help Desk and submit a ticket. Your email address How can we improve our documentation? Custom tracking code for the thanks page You can add your custom tracking code to the theme functions.php file, based on this: View the code on Gist. The order object contains all the order data you should need, including line items.