Hi. Sorry for reopening this issue, but I have the same problem, but I know exactly what is the cause. I am using custom function to beautify the search url. Here is my code from functions.php:
function fb_change_search_url_rewrite() {
if ( is_search() && ! empty( $_GET['s'] ) ) {
wp_redirect( home_url( "/search/" ) . urlencode( get_query_var( 's' ) ) );
exit();
}
}
add_action( 'template_redirect', 'fb_change_search_url_rewrite' );
Any idea how to fix this? Maybe even adding option into settings to ignore double search count. Or is there maybe some option to disable the logging which I can add into my function so it will disable it before the redirect?