WooCommerce Docs

Documentation, Reference Materials, and Tutorials for your WooCommerce products

Search

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.

Please note: This snippet is for adding tracking for a separate piece of analytic software you may have installed.
Back to the top