WooCommerce Docs

Documentation, Reference Materials, and Tutorials for your WooCommerce products


Custom tracking code for the thanks page

You can add your custom tracking code to the theme functions.php file, based on this:

The order object contains all the order data you should need, including line items.

Note: This snippet is for adding tracking for a separate piece of analytic software you may have installed. We are unable to provide support for customizations under our Support Policy. If you are unfamiliar with code/templates and resolving potential conflicts, contact a WooExpert.
Back to the top