WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[resolved] Post counts incremented as expected, but counts are massively off (7 posts)

  1. timbonicus
    Member
    Posted 7 months ago #

    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/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 7 months ago #

  3. timbonicus
    Member
    Posted 7 months ago #

    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?

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 7 months ago #

    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.

  5. timbonicus
    Member
    Posted 7 months ago #

    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.

  6. timbonicus
    Member
    Posted 7 months ago #

    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!

  7. Héctor Cabrera
    Member
    Plugin Author

    Posted 7 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic