WordPress.org

Forums

WP Statistics
[resolved] how to remove baidu from search engines (6 posts)

  1. scruffy1
    Member
    Posted 1 year ago #

    Hi

    As I have no interest in visitors coming from baidu as our server has china as blocked how can i remove that search engine from showing in stats as zero ?

    thanks

    https://wordpress.org/plugins/wp-statistics/

  2. Greg Ross
    Member
    Plugin Author

    Posted 1 year ago #

    There's no way to remove it without editing the source of the plugin.

    If you want to do this, be aware that after each upgrade you will have to re-edit the source code again.

    Having said that, edit wordpress\wp-content\plugins\wp-statistics\includes\functions\functions.php, find the wp_statistics_searchengine_list function (should be on line 188 in version 5.2) and delete the line for Baidu.

  3. scruffy1
    Member
    Posted 1 year ago #

    would you be able to change plugin so it only shows the search engines when they show hits ?

    this would be a perhaps easier way for all, many people in UK block baidu and yandex as they are a bit of a pain for crawling and digging.

    thanks :)

  4. Greg Ross
    Member
    Plugin Author

    Posted 1 year ago #

    Would you accept being able to disable a search engine in the settings page? This would not show it in the lists and not collect data for it.

    Simply not displaying it if it doesn't have any hits gets complex and may not be the desired result for many users.

  5. scruffy1
    Member
    Posted 1 year ago #

    yes, that would be a good feature a check box next to each search engine

    thanks

  6. Greg Ross
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, 5.3 will probably be out tonight and will include the option.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Statistics
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.