From d7a8be0655cb55eef283429ef48d054bc79bca1d Mon Sep 17 00:00:00 2001 From: Davit Vardanyan Date: Thu, 26 Mar 2026 14:40:06 +0400 Subject: [PATCH 1/4] Use fallback default event names if not set --- .../trunk/anytrack-for-woocommerce.php | 2 ++ anytrack-for-woocommerce/trunk/modules/ajax.php | 2 +- anytrack-for-woocommerce/trunk/modules/hooks.php | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php b/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php index d9266d1..6a1b3dd 100755 --- a/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php +++ b/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php @@ -41,8 +41,10 @@ public function plugin_activation() if( !get_option('waap_options') ){ $inital_values = [ + 'ViewContent' => 'ViewContent', 'add_to_cart' => 'AddToCart', 'initiate_checkout' => 'InitiateCheckout', + 'add_payment_info' => 'AddPaymentInfo', 'purchase' => 'Purchase', ]; update_option('waap_options', $inital_values); diff --git a/anytrack-for-woocommerce/trunk/modules/ajax.php b/anytrack-for-woocommerce/trunk/modules/ajax.php index a636f93..0f58ae8 100644 --- a/anytrack-for-woocommerce/trunk/modules/ajax.php +++ b/anytrack-for-woocommerce/trunk/modules/ajax.php @@ -10,7 +10,7 @@ function wpafw_checkout_action() if (check_ajax_referer('ajax_call_nonce', 'security')) { $settings = get_option('waap_options'); - $add_payment_info = isset($settings['add_payment_info']) ? $settings['add_payment_info'] : ''; + $add_payment_info = isset($settings['add_payment_info']) ? $settings['add_payment_info'] : 'AddPaymentInfo'; diff --git a/anytrack-for-woocommerce/trunk/modules/hooks.php b/anytrack-for-woocommerce/trunk/modules/hooks.php index efd0ff4..5f397a7 100644 --- a/anytrack-for-woocommerce/trunk/modules/hooks.php +++ b/anytrack-for-woocommerce/trunk/modules/hooks.php @@ -23,7 +23,7 @@ function anytrack_for_woocommerce_wp_head() function anytrack_for_woocommerce_woocommerce_add_to_cart($cart_item_key, $product_id, $quantity, $variation_id, $variation, $cart_item_data) { $settings = get_option('waap_options'); - $add_to_cart = isset($settings['add_to_cart']) ? $settings['add_to_cart'] : ''; + $add_to_cart = isset($settings['add_to_cart']) ? $settings['add_to_cart'] : 'AddToCart'; $product_info = anytrack_for_woocommerce_get_single_product_info($product_id, $quantity, $variation_id); $items = []; @@ -37,7 +37,7 @@ function anytrack_for_woocommerce_woocommerce_add_to_cart($cart_item_key, $produ function anytrack_for_woocommerce_template_redirect() { $settings = get_option('waap_options'); - $initiate_checkout = isset($settings['initiate_checkout']) ? $settings['initiate_checkout'] : ''; + $initiate_checkout = isset($settings['initiate_checkout']) ? $settings['initiate_checkout'] : 'InitiateCheckout'; if (is_checkout() && !isset($_GET['key'])) { @@ -74,7 +74,7 @@ function anytrack_for_woocommerce_view_product() { global $post; $settings = get_option('waap_options'); - $viewProduct = isset($settings['ViewContent']) ? $settings['ViewContent'] : ''; + $viewProduct = isset($settings['ViewContent']) ? $settings['ViewContent'] : 'ViewContent'; if (is_product()) { @@ -102,7 +102,7 @@ function anytrack_for_woocommerce_woocommerce_new_order($order_id) $order = wc_get_order($order_id); $settings = get_option('waap_options'); - $purchase = isset($settings['purchase']) ? $settings['purchase'] : ''; + $purchase = isset($settings['purchase']) ? $settings['purchase'] : 'Purchase'; $fixed_type = 'Purchase'; $is_upstroke = $order->get_created_via() == 'upstroke'; From 34e459bbc5ccf4ed81350d89c7f2cb0c011c8d01 Mon Sep 17 00:00:00 2001 From: Davit Vardanyan Date: Thu, 26 Mar 2026 14:41:49 +0400 Subject: [PATCH 2/4] Increment version to 1.5.9 in preparation for release --- anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php | 4 ++-- anytrack-for-woocommerce/trunk/readme.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php b/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php index 6a1b3dd..dc269e9 100755 --- a/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php +++ b/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php @@ -2,10 +2,10 @@ /* Plugin Name: AnyTrack for WooCommerce Description: Connect with Google, Facebook, Bing, Taboola and Outbrain and sync all your ad campaigns directly from WooCommerce. -Version: 1.5.8 +Version: 1.5.9 Author: AnyTrack Ltd. Author URI: https://anytrack.io -Stable tag: 1.5.8 +Stable tag: 1.5.9 */ //error_reporting(E_ALL); diff --git a/anytrack-for-woocommerce/trunk/readme.txt b/anytrack-for-woocommerce/trunk/readme.txt index 8f484a4..fa62dd1 100755 --- a/anytrack-for-woocommerce/trunk/readme.txt +++ b/anytrack-for-woocommerce/trunk/readme.txt @@ -4,7 +4,7 @@ Donate link: https://anytrack.io/ Tags: woocommerce, e-commerce, conversions, facebook, google, funnelkit Requires at least: 4.7 Tested up to: 6.8.1 -Stable tag: 1.5.8 +Stable tag: 1.5.9 Requires PHP: 7.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -77,7 +77,7 @@ prefer on the pixel settings on AnyTrack. Initial version. == Changelog == -= 1.5.8 = += 1.5.9 = * Add property id validation = 1.5.7 = From 35b55bc94ccad7dbbd2cdc04d89e2497f54bc994 Mon Sep 17 00:00:00 2001 From: Davit Vardanyan Date: Thu, 26 Mar 2026 14:44:25 +0400 Subject: [PATCH 3/4] Increment version to 1.5.9 in preparation for release --- anytrack-for-woocommerce/trunk/readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/anytrack-for-woocommerce/trunk/readme.txt b/anytrack-for-woocommerce/trunk/readme.txt index fa62dd1..2b5fcc6 100755 --- a/anytrack-for-woocommerce/trunk/readme.txt +++ b/anytrack-for-woocommerce/trunk/readme.txt @@ -78,6 +78,9 @@ Initial version. == Changelog == = 1.5.9 = +* Standard event names + += 1.5.8 = * Add property id validation = 1.5.7 = From 368f0cad330f3905568e1595a2bdec051e9b9846 Mon Sep 17 00:00:00 2001 From: Davit Vardanyan Date: Thu, 26 Mar 2026 14:45:39 +0400 Subject: [PATCH 4/4] revert init --- anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php b/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php index dc269e9..bde654a 100755 --- a/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php +++ b/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php @@ -41,10 +41,8 @@ public function plugin_activation() if( !get_option('waap_options') ){ $inital_values = [ - 'ViewContent' => 'ViewContent', 'add_to_cart' => 'AddToCart', 'initiate_checkout' => 'InitiateCheckout', - 'add_payment_info' => 'AddPaymentInfo', 'purchase' => 'Purchase', ]; update_option('waap_options', $inital_values);