WordPress.org

Forums

WordPress Popular Posts
24 hours are correct but 7 days, 30 days are not (34 posts)

  1. TRDK29
    Member
    Posted 11 months ago #

    It seems to me that the there is a problem with 7 days and 30 days.

    The figures for 24 hours are OK. But it seems that 7 days and 30 days are not showing the correct figures. A post that have 250-300 visit per day (24 hours) and should show 1.750 - 2.100 only shows 1.200.

    It is the same result for other post.

    What can be the problem?

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

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    Hi there!

    Not sure how you're estimating the views count for the rest of the time ranges. Could you please specify?

  3. TRDK29
    Member
    Posted 11 months ago #

    Let's take this post:

    http://www.torbenrick.eu/blog/change-management/12-reasons-why-people-resist-change/

    This post shows 3.055 - Popular Posts – Last 30 days. And 1.092 for the last 7 days and 307 for 24 hours.

    But Google Analytics says 10.239 pagesviews and 4.569 unique pagesviews
    (30 days)

    It same for picture for all post. PP are below on all post.

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    That's a huge difference! How long have you been using WPP?

  5. TRDK29
    Member
    Posted 11 months ago #

    1 1/2 - 2 years.

    It has been working just OK fine for a long time. After 2.3.5 the problem started and has not been fixed in 3.0

  6. TRDK29
    Member
    Posted 11 months ago #

    Back in "good old days" the WPP 30 days showed the same numbers that GA did show

  7. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    Back in "good old days" the WPP 30 days showed the same numbers that GA did show

    That's because after 2.3.2 -I think, it's been a long time- the way WPP updated views count changed from AJAX (Javascript) to template detection (check if single.php was loaded).

    Since most spiders / bots out there can't run Javascript (which is something I wasn't aware of back then), versions prior 2.3.2 successfully filtered out their page views because the AJAX call was never executed. This is why the statistics would be close to what GA reported. After that change though, WPP started counting their page views as valid ones, inflating the statistics.

    Of course, I wouldn't have made that modification if I knew that. Unfortunately, a long time had passed before I realized what the problem was. WPP 3.0.0 could have been released months ago actually, but I decided to spend a little more improving the plugin and making sure old bugs were fixed for good.

    Anyways, this is why the statistics were not that accurate. Unfortunately, what WPP has registered prior to 3.0.0 can't be corrected so old stats (weekly, monthly, all-time) will still reflect visits from bots.

    In your case, however, something's odd. There should be more visits on WPP than on GA. You're reporting that GA is actually displaying more views than WPP does. Are/were you using a caching plugin, by any chance?

    A long post, I know. If you actually read all that, thank you for your patience hehe.

  8. TRDK29
    Member
    Posted 11 months ago #

    No I don't use any caching plugin. I only use CDN (CloudFlare) but that can not be the problem.

  9. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    Something on your site is / has been / was preventing WPP from updating the views count, but it's hard to tell without further info and/or checking directly on your site.

    Possible solutions / ideas that come to my mind now:

    • Clear WPP's data to have a clean start and detect if WPP is correctly updating the views count against what GA reports. I know, you probably don't like this solution because you'll lose your data. Another approach would be to delete only the cache data (last 24 hours / week / months) and preserve the All-time data.
    • Keep using WPP 3.0.x for a month, and monitor how the stats behave during that period.

    If the gap between WPP stats and GA is still too big after that (there will always be a difference, though), then I'd need to take a look into your site to figure out what's going on.

  10. TRDK29
    Member
    Posted 11 months ago #

    Hi Héctor

    Thanks for your reply.

    I don't have a problem in clearing all data. I just don't see the point in doing it. How should that help?

    It is quit clear that the plugin shows totally wrong numbers (I have been looking again at the numbers, they are totally wrong for 7 days and 30 days. 24 hours seems ok)

  11. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    I don't have a problem in clearing all data. I just don't see the point in doing it. How should that help?

    You're right, I was a bit tired when I wrote that. Just go with the second option, stats should normalize after that time.

  12. TRDK29
    Member
    Posted 11 months ago #

    Stats has now stabilized - but on a VERY low level.

    This post has 9.222 views (Google Analytics) but only 2.961 on WPP (30 days). Both are the same period (30 days)

    http://www.torbenrick.eu/blog/change-management/12-reasons-why-people-resist-change/

    It is the same problem for all other post.

  13. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    How about last 7 days? Is there still a huge difference between GA and WPP?

  14. TRDK29
    Member
    Posted 11 months ago #

    For the same post as above GA shows 2.403. WPP only shows 1.145 (both 7 days)

  15. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    While a difference between GA and WPP is something to be expected, what you're reporting doesn't seem right.

    I'll cook up a test version for you to try, and I'll run some more tests myself. I'll post back here by Sunday. I'm going to be needing your support to check a few things as well, hope that's OK with you.

  16. TRDK29
    Member
    Posted 10 months ago #

    Thanks Héctor - Looking forward to your feedback

  17. Héctor Cabrera
    Member
    Plugin Author

    Posted 10 months ago #

    Alright, as promised, please download WPP 3.0.4 Beta from the Releases page at Github.

    There's only one change compared to WPP 3.0.3, so internally the Beta version will still report itself as 3.0.3 once you install it.

    Try it for a day and a half, and then compare the difference between GA and WPP statistics. The reason for this is that WPP reports the statistics right away, while GA generally takes a few hours to update the views count.

    Also, make sure you set Log views from to Everyone via Settings > WordPress Popular Posts > Tools.

  18. Héctor Cabrera
    Member
    Plugin Author

    Posted 10 months ago #

    Just posted a new revision, made a mistake on the previous beta version: https://github.com/cabrerahector/wordpress-popular-posts/releases

  19. TheRiz
    Member
    Posted 10 months ago #

    Since updating to the latest plugin version, I don't think my "all time" stats are updating. Post views would normally go up fairly steadily, but now they don't budge at all.

    Any ideas? Is this a similar issue that's been reported?

    using WP 3.9.1

  20. Héctor Cabrera
    Member
    Plugin Author

    Posted 10 months ago #

    @TheRiz well, can't tell without further info from you. Are you using a caching plugin? If so, did you clear its cache after upgrading?

  21. TRDK29
    Member
    Posted 10 months ago #

    Hi Héctor

    Have no done the upgrade to WPP 3.0.4 Beta 2.
    I will get back to you within the next couple of days with the result.

    Thanks for your support

  22. TRDK29
    Member
    Posted 10 months ago #

    The beta version - WPP 3.0.4 Beta 2 - has been running a week now.

    All numbers (30 days and all time - I am not sure about 7 days) are increasing. The above post have gone (30 days figures) up from 3.000 to over 4.400 now. All other post have increased the same amount (%). So that is good.

    I am not sure if the problem has been fixed

  23. Héctor Cabrera
    Member
    Plugin Author

    Posted 10 months ago #

    That sounds like an improvement, so it's a good thing! I'll wait a bit longer before publishing a new release, though. Want to make sure everything's working as expected.

    Thanks for the report!

  24. TRDK29
    Member
    Posted 10 months ago #

    Hi Victor

    Done some more test.

    The numbers have increased with the beta version - but have stopped now.

    GA shows 2.412 and WPP shows 1.178 (same period) for the above post.
    It is the same problem for all post.

    There is still something wrong that need to be fixed.

  25. Cavor
    Member
    Posted 10 months ago #

    I have the same problem

  26. TRDK29
    Member
    Posted 10 months ago #

    The WPP 3.0.4 Beta 2 did not fix the problem.

  27. TRDK29
    Member
    Posted 9 months ago #

    WPP 3.0.4 Beta 2 has now stopped working correctly. The only thing that is working is 24 hours and all time. 7 days and 30 days not.

    30 days no shows only some few views on the most popular post.

  28. Héctor Cabrera
    Member
    Plugin Author

    Posted 9 months ago #

    It's working for me (on localhost, at least). Try upgrading to the latest beta available (WPP 3.4.4 Beta 3, at the time of writing this).

  29. TRDK29
    Member
    Posted 9 months ago #

    Done that. No improvement.

    I will be happy to provide you with screen-shots so that you can see the whole problem.

  30. TRDK29
    Member
    Posted 9 months ago #

    Have no deleted all files related to the plugin and installed a complete new version of the plugin - 3.04 Beta 3.

    Have not imported the old stats (tables) - so I am starting on 0 again. It seems that the whole migration from the older versions to the new is causing the severe problems.

Reply »

You must log in to post.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.