Home » WooCommerce: Add Tracking Code / Script @ Thank You Page

WooCommerce: Add Tracking Code / Script @ Thank You Page

by Tutor Aspire

How do you add a tracking code to the WooCommerce Thank You Page? Well, with a simple snippet (and no plugin) you can!

No matter whether you’re using Google AdWords, Facebook or other forms of marketing – the Thank You Page is such an important section of an ecommerce store and needs some TLC!

WooCommerce: Add Conversion Tracking to the Thank You Page
WooCommerce: Add Conversion Tracking to the Thank You Page

PHP Snippet: Add Tracking Code or Script to WooCommerce Thank You Page

/**
 * @snippet       Add Script @ WooCommerce Thank You Page
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @testedwith    WooCommerce 5
 * @donate $9     https://tutoraspire.com
 */

add_action( 'woocommerce_thankyou', 'tutoraspire_conversion_tracking_thank_you_page' );

function tutoraspire_conversion_tracking_thank_you_page() {
   ?>
   
    

You may also like