Changeset 3452011
- Timestamp:
- 02/02/2026 11:40:11 AM (2 months ago)
- Location:
- queryra-ai-search/trunk
- Files:
-
- 1 added
- 5 edited
-
includes/class-queryra-analytics.php (added)
-
includes/class-queryra-search.php (modified) (1 diff)
-
includes/class-queryra-setup-wizard.php (modified) (2 diffs)
-
includes/class-queryra-sync.php (modified) (2 diffs)
-
queryra-ai-search.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
queryra-ai-search/trunk/includes/class-queryra-search.php
r3451401 r3452011 201 201 } 202 202 203 // Track first search (only once per installation) 204 if (!get_option('queryra_first_search_tracked')) { 205 Queryra_Analytics::track('first_search'); 206 update_option('queryra_first_search_tracked', true); 207 } 208 203 209 // Cache the results (10 minutes) 204 210 set_transient($cache_key, $all_ids, $this->cache_duration); -
queryra-ai-search/trunk/includes/class-queryra-setup-wizard.php
r3451401 r3452011 97 97 $this->step = isset($_GET['step']) ? absint($_GET['step']) : 1; 98 98 $this->step = max(1, min($this->step, $this->total_steps)); 99 100 // Track wizard opened (only on first step, first visit) 101 if ($this->step === 1 && !get_transient('queryra_wizard_opened_tracked')) { 102 Queryra_Analytics::track('wizard_opened'); 103 set_transient('queryra_wizard_opened_tracked', true, DAY_IN_SECONDS); 104 } 99 105 100 106 // Calculate progress percentage … … 728 734 } 729 735 736 // Track signup completed (API key successfully connected) 737 Queryra_Analytics::track('signup_completed'); 738 730 739 wp_send_json_success(array( 731 740 'message' => 'API key saved successfully' -
queryra-ai-search/trunk/includes/class-queryra-sync.php
r3451401 r3452011 322 322 } 323 323 324 // Track sync start 325 Queryra_Analytics::track('sync_started'); 326 324 327 // Sync posts 325 328 $result = $this->sync_posts($post_ids); 329 330 if ($result['success']) { 331 // Track sync completion 332 Queryra_Analytics::track('sync_completed'); 333 wp_send_json_success($result); 334 } else { 335 wp_send_json_error($result); 336 } 337 } 338 339 /** 340 * AJAX: Test connection 341 */ 342 public function ajax_test_connection() { 343 check_ajax_referer('queryra_sync', 'nonce'); 344 345 if (!current_user_can('manage_options')) { 346 wp_send_json_error(array('message' => 'Unauthorized')); 347 } 348 349 $result = $this->api->test_connection(); 326 350 327 351 if ($result['success']) { … … 331 355 } 332 356 } 333 334 /**335 * AJAX: Test connection336 */337 public function ajax_test_connection() {338 check_ajax_referer('queryra_sync', 'nonce');339 340 if (!current_user_can('manage_options')) {341 wp_send_json_error(array('message' => 'Unauthorized'));342 }343 344 $result = $this->api->test_connection();345 346 if ($result['success']) {347 wp_send_json_success($result);348 } else {349 wp_send_json_error($result);350 }351 }352 357 } -
queryra-ai-search/trunk/queryra-ai-search.php
r3451401 r3452011 4 4 * Plugin URI: https://github.com/GronRafal/queryra-wordpress-plugin 5 5 * Description: AI-powered semantic search for your WordPress content. Automatically sends posts, pages, and custom post types to Queryra. 6 * Version: 1.1. 16 * Version: 1.1.2 7 7 * Author: Queryra 8 8 * Author URI: https://queryra.com … … 20 20 21 21 // Plugin constants 22 define('QUERYRA_VERSION', '1.1. 1');22 define('QUERYRA_VERSION', '1.1.2'); 23 23 define('QUERYRA_PLUGIN_DIR', plugin_dir_path(__FILE__)); 24 24 define('QUERYRA_PLUGIN_URL', plugin_dir_url(__FILE__)); … … 33 33 require_once QUERYRA_PLUGIN_DIR . 'includes/class-queryra-setup-wizard.php'; 34 34 require_once QUERYRA_PLUGIN_DIR . 'includes/class-queryra-deactivation-survey.php'; 35 require_once QUERYRA_PLUGIN_DIR . 'includes/class-queryra-analytics.php'; 35 36 36 37 /** … … 113 114 // Flush rewrite rules 114 115 flush_rewrite_rules(); 116 117 // Track activation (anonymous) 118 Queryra_Analytics::track('plugin_activated'); 115 119 } 116 120 … … 119 123 */ 120 124 public function deactivate() { 125 // Track deactivation (anonymous) 126 Queryra_Analytics::track('plugin_deactivated'); 127 121 128 // Flush rewrite rules 122 129 flush_rewrite_rules(); -
queryra-ai-search/trunk/readme.txt
r3451409 r3452011 4 4 Requires at least: 5.8 5 5 Tested up to: 6.9 6 Stable tag: 1.1. 16 Stable tag: 1.1.2 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 159 159 160 160 == Changelog == 161 162 = 1.1.2 (2026-02-02) = 163 * Added: Anonymous usage analytics to improve the plugin 164 * Added: Opt-out option via QUERYRA_DISABLE_ANALYTICS constant 165 * Privacy: No personal data collected (see queryra.com/privacy section 1.6) 161 166 162 167 = 1.1.1 (2026-02-01) =
Note: See TracChangeset
for help on using the changeset viewer.