This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Statistics issue when user presses 'return'

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Statistics issue when user presses 'return' Reply To: Statistics issue when user presses 'return'

#35198
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

You are right, those queries should be recorded too. I think there is a bypass solution to it though.

Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.

add_action('asp_results', 'asp_add_stat_noajax', 10, 4);
function asp_add_stat_noajax($results, $id, $is_ajax, $args) {
	if ( !$is_ajax ) {
		asp_statistics::addKeyword($id, $args['s']);
	}
}