Plugin Directory

Changeset 3452011


Ignore:
Timestamp:
02/02/2026 11:40:11 AM (2 months ago)
Author:
queryra
Message:

Version 1.1.2

Location:
queryra-ai-search/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • queryra-ai-search/trunk/includes/class-queryra-search.php

    r3451401 r3452011  
    201201                }
    202202
     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
    203209                // Cache the results (10 minutes)
    204210                set_transient($cache_key, $all_ids, $this->cache_duration);
  • queryra-ai-search/trunk/includes/class-queryra-setup-wizard.php

    r3451401 r3452011  
    9797        $this->step = isset($_GET['step']) ? absint($_GET['step']) : 1;
    9898        $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        }
    99105
    100106        // Calculate progress percentage
     
    728734        }
    729735
     736        // Track signup completed (API key successfully connected)
     737        Queryra_Analytics::track('signup_completed');
     738
    730739        wp_send_json_success(array(
    731740            'message' => 'API key saved successfully'
  • queryra-ai-search/trunk/includes/class-queryra-sync.php

    r3451401 r3452011  
    322322        }
    323323
     324        // Track sync start
     325        Queryra_Analytics::track('sync_started');
     326
    324327        // Sync posts
    325328        $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();
    326350
    327351        if ($result['success']) {
     
    331355        }
    332356    }
    333 
    334     /**
    335      * AJAX: Test connection
    336      */
    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     }
    352357}
  • queryra-ai-search/trunk/queryra-ai-search.php

    r3451401 r3452011  
    44 * Plugin URI: https://github.com/GronRafal/queryra-wordpress-plugin
    55 * Description: AI-powered semantic search for your WordPress content. Automatically sends posts, pages, and custom post types to Queryra.
    6  * Version: 1.1.1
     6 * Version: 1.1.2
    77 * Author: Queryra
    88 * Author URI: https://queryra.com
     
    2020
    2121// Plugin constants
    22 define('QUERYRA_VERSION', '1.1.1');
     22define('QUERYRA_VERSION', '1.1.2');
    2323define('QUERYRA_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2424define('QUERYRA_PLUGIN_URL', plugin_dir_url(__FILE__));
     
    3333require_once QUERYRA_PLUGIN_DIR . 'includes/class-queryra-setup-wizard.php';
    3434require_once QUERYRA_PLUGIN_DIR . 'includes/class-queryra-deactivation-survey.php';
     35require_once QUERYRA_PLUGIN_DIR . 'includes/class-queryra-analytics.php';
    3536
    3637/**
     
    113114        // Flush rewrite rules
    114115        flush_rewrite_rules();
     116
     117        // Track activation (anonymous)
     118        Queryra_Analytics::track('plugin_activated');
    115119    }
    116120
     
    119123     */
    120124    public function deactivate() {
     125        // Track deactivation (anonymous)
     126        Queryra_Analytics::track('plugin_deactivated');
     127
    121128        // Flush rewrite rules
    122129        flush_rewrite_rules();
  • queryra-ai-search/trunk/readme.txt

    r3451409 r3452011  
    44Requires at least: 5.8
    55Tested up to: 6.9
    6 Stable tag: 1.1.1
     6Stable tag: 1.1.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    159159
    160160== 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)
    161166
    162167= 1.1.1 (2026-02-01) =
Note: See TracChangeset for help on using the changeset viewer.