diff --git a/classes/integrations/google-analytics/class-wc-google-analytics.php b/classes/integrations/google-analytics/class-wc-google-analytics.php index 157a62a89ac..d1ad6ac63c9 100644 --- a/classes/integrations/google-analytics/class-wc-google-analytics.php +++ b/classes/integrations/google-analytics/class-wc-google-analytics.php @@ -120,7 +120,7 @@ class WC_Google_Analytics extends WC_Integration { if ( ! $tracking_id ) return; // Doing eCommerce tracking so unhook standard tracking from the footer - remove_action('wp_footer', 'woocommerce_google_tracking'); + remove_action('wp_footer', array( &$this, 'google_tracking_code' ) ); // Get the order and output tracking code $order = new WC_Order($order_id);