diff --git a/src/Integration/WooCommerce.php b/src/Integration/WooCommerce.php index d0a4645..2a20075 100644 --- a/src/Integration/WooCommerce.php +++ b/src/Integration/WooCommerce.php @@ -490,7 +490,7 @@ public function get_datalayer_content_order_received( array $data_layer ): array $order_id = apply_filters( 'woocommerce_thankyou_order_id', absint( $wp->query_vars['order-received'] ) ); - if ( ! $order_id ) { + if ( ! $order_id || apply_filters( 'gtmkit_disable_frontend_purchase_event', false ) ) { return $data_layer; }