diff --git a/README.txt b/README.txt index 9c3a46d..dfedf11 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: gtmserver,bukashk0zzz Tags: google tag manager, google tag manager server side, gtm, gtm server side, tag manager, tagmanager, analytics, google, serverside, server-side, gtag Requires at least: 5.2.0 Tested up to: 6.7.0 -Stable tag: 2.1.22 +Stable tag: 2.1.23 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -67,6 +67,9 @@ Yes. How t == Changelog == += 2.1.23 = +* Fix purchase event + = 2.1.22 = * Tested up to WordPress 6.7 diff --git a/gtm-server-side.php b/gtm-server-side.php index e0c5db5..7138e2e 100644 --- a/gtm-server-side.php +++ b/gtm-server-side.php @@ -10,7 +10,7 @@ * Plugin Name: GTM Server Side * Plugin URI: https://wordpress.org/plugins/gtm-server-side/ * Description: Enhance conversion tracking by implementing server-side tagging using server Google Tag Manager container. Effortlessly configure data layer events in web GTM, send webhooks, set up custom loader, and extend cookie lifetime. - * Version: 2.1.22 + * Version: 2.1.23 * Author: Stape * Author URI: https://stape.io * License: GPL-2.0+ diff --git a/includes/class-gtm-server-side-event-purchase.php b/includes/class-gtm-server-side-event-purchase.php index 7d05e8a..8aef6b7 100644 --- a/includes/class-gtm-server-side-event-purchase.php +++ b/includes/class-gtm-server-side-event-purchase.php @@ -65,9 +65,11 @@ public function woocommerce_new_order( $order_id ) { * @return void */ public function wp_footer() { + /* phpcs:ignore if ( ! is_wc_endpoint_url( 'order-received' ) ) { return; } + */ $order_id = GTM_Server_Side_Helpers::get_session( self::TRANSACTION_KEY ); if ( empty( $order_id ) ) {