Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wp-seopress/8bcbfd54de9a3c1b68cd21037e3c9af9 to your computer and use it in GitHub Desktop.
Filter WooCommerce order status sent to Google Analytics Enhanced Ecommerce
function sp_gtag_ec_status($status) {
//default status
//$status = ['completed', 'processing'];
//Other available status: 'pending', 'on-hold', 'cancelled', 'refunded', 'failed', 'checkout-draft'
return $status;
}
add_filter('seopress_gtag_ec_status', 'sp_gtag_ec_status');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment