• Resolved meefeed

    (@meefeed)


    I have enable Ignore bots option but then also bots are still showing in stats (Subscriber Info) can you fix this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeff Starr

    (@specialk)

    If you let me know which bots (user agents) are being logged, I would be glad to add them to the ignore list. Probably will be updating the plugin again in the next couple of weeks.

    Thread Starter meefeed

    (@meefeed)

    Ok I have Reset feed stats so I don’t have much user User Agent info here as some

    User Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +https://www.google.com/bot.html)

    User Agent: Mozilla/5.0 (compatible; YandexBot/3.0; +https://yandex.com/bots)

    User Agent: Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +https://www.google.com/bot.html)

    Can I edit any plugin file to fix this for now?

    Thanks for fast reply, support and for this plugin.

    • This reply was modified 6 years, 7 months ago by meefeed.
    • This reply was modified 6 years, 7 months ago by meefeed.
    Plugin Author Jeff Starr

    (@specialk)

    You are correct those all should be ignored after changing the option to ignore bots. So it looks like a bug at this point. I’ll investigate and resolve any issue in the next version of the plugin. Thank you for reporting this.

    Thread Starter meefeed

    (@meefeed)

    Thanks

    Hello Jeff,

    I had the same issue as @meefeed which I solved by wrapping the insert code around the sfs_ignore_bots condition in function simple_feed_stats().

    if (isset($sfs_options['sfs_ignore_bots']) && $sfs_options['sfs_ignore_bots'] && preg_match('/'. implode('|', sfs_ignore_bots()) .'/i', $agent)) {
    			//do nothing
    		} else {
    		
    			if     (strpos($request, $feed_rdf)       !== false) $type = 'RDF';
    			elseif (strpos($request, $feed_atom)      !== false) $type = 'Atom';
    			elseif (strpos($request, $feed_rss2)      !== false) $type = 'RSS2';
    			elseif (strpos($request, $feed_coms_atom) !== false) $type = 'Comments';
    			elseif (strpos($request, $feed_coms)      !== false) $type = 'Comments';
    			else                                                 $type = 'Other';
    			
    			$tracking = 'default';
    			
    			$table = $wpdb->prefix .'simple_feed_stats';
    			
    			$wpdb->insert($table, array(
    					
    					'logtime'  => $logtime, 
    					'request'  => $request, 
    					'referer'  => $referer, 
    					'type'     => $type, 
    					'qstring'  => $qstring, 
    					'address'  => $address, 
    					'tracking' => $tracking, 
    					'agent'    => $agent, 
    					
    				), array('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')
    			);
    			
    		}

    You should create GitHub repositories for your plugins to let contributors pull requests.

    Thank You.

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up, this issue is resolved in the next version of Simple Feed Stats. Should be available today or tomorrow.

    Thanks again @meefeed for reporting this issue.

    Thank you @dobaniashish for your feedback.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ignore bots option is not working’ is closed to new replies.