Support » Plugins and Hacks » WordPress Popular Posts » Post counts incremented as expected, but counts are massively off

  • Resolved timbonicus

    (@timbonicus)


    WP Popular Posts counts page views correctly when I check the admin panel and visit a page in incognito mode. However, the stats are getting majorly skewed.

    In the last 24 hours, Google Analytics shows 162 pageviews. WPPP shows over 1000 views just for the top 10 posts! Looking through my access logs, I see a lot of bots (Googlebot, Baiduspider, AhrefsBot, linkdexbot, Ezooms, etc). I assume the bot hits are being counted as views. Is there a way to ignore these?

    http://wordpress.org/plugins/wordpress-popular-posts/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)


    Thanks Hector, I think the Ajaxify setting will clear out the fake views. The sidebar widget doesn’t show anything with this enabled; I see it reported in this topic. Is the Ajaxify setting incompatible with the widget?

    Plugin Author Hector Cabrera

    (@hcabrera)


    Nope, works for me. Actually, the functionality is basically the same. I would need more info and/or access to your site in order to check what might be wrong.

    I have some clues. The AJAX call works fine, but it’s trying to append the results to a jQuery object identified by $widget_id (‘#wpp-3’ in my case).

    My theme renders widgets using the dynamic_sidebar function, which doesn’t seem to be setting widget IDs.

    Got it, the theme is using register_sidebar in functions.php and had an empty string for the before_widget/after_widget options. This overrides the default that adds an LI with a widget ID.

    Sorry for the confusion!

    Plugin Author Hector Cabrera

    (@hcabrera)


    Nice catch! Thank you for sharing this info with me. Don’t be sorry, it’s my fault as well since I assumed that the widget ID was going to be present – which obviously isn’t entirely true. I need to find a workardoung for that and/or ask people to check for this when using the Ajaxify feature.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post counts incremented as expected, but counts are massively off’ is closed to new replies.