Is there a difference between dashboard stats and CSV-loaded stats?

  • Author
    Posts
  • #910827

    baukezwaan
    Member

    There seems to be a difference between stats in the dashboard, and custom retrieved stats. Especially on fairly new posts, it seems that retrieving statistices can get a bit off.

    If I look in the dashboard the stats seem more accurate, and new posts appear fairly soon in the list of all posts.
    Then when I try to use this data in the website, using the stats_get_csv function, other data is presented.

    Further investigation leads to the conclusion that data in the dashboard is loaded via http://dashboard.wordpress.com/wp-admin/index.php?etc.
    Data received via the stats_get_csv-function loads data through http://stats.wordpress.com/csv.php?etc….

    This leads to differences between post-counts my vistors see (less), and data shown in the dashboard (more accurate?).

    Are my assumptions correct, and if so, how can this difference be explained (to my customer)?
    Blog url: http://www.artsenauto.nl

    The blog I need help with is www.artsenauto.nl.

    #910987

    jeherve
    Staff

    When querying WordPress.com for stats, a limit parameter can be added to the query to be able to return more results.

    Could you try adding this parameter to your query?

    You can find more details about it here:
    http://stats.wordpress.com/csv.php

    #911001

    baukezwaan
    Member

    thanks jeherve, but I wasn’t clear what my problem is aparently.
    The issue is not the amout of returned data, but the view-count per post.

    For example, the data in the dashbord shows:
    /wp-admin/admin.php?page=stats&view=postviews&summarize&numdays=-1
    post-id=2196, number of views: 139x
    post-id=2176, number of views: 26x

    The data from the csv shows
    stats_get_csv('postviews', '&days=-1&limit=-1&summarize')
    post-id=2196, number of views: 107x
    post-id=2176, number of views: 16x

    Hope this makes my problem more clear.

    #911023

    macmanx
    Staff

    Are the numbers that you’re getting from the csv output still increasing, just at a slower rate?

    #911036

    baukezwaan
    Member

    yep, still increasing. Hard to say when and how much, but they certainly increase.
    Is there a delay between the processing of the CSV outputted data and the dashboard?

    #911050

    macmanx
    Staff

    Yes, there usually is a delay, as the CSV output is meant to be more as summarized collected data and not real-time.

    #911074

    baukezwaan
    Member

    hmm, don’t like the sound of that.

    What is a good alternative to display views of a post on the website? Should I use another stats-plugin? Anyone know one that is compatible with caching (e.g. based on JS)?

    #911075

    macmanx
    Staff

    Have you considered adding a plugin with a simple counter?

    I don’t know of any specific ones myself, but I know there are a few out there. The kind folks at http://wordpress.org/support/ should have some good recommendations.

The topic ‘Is there a difference between dashboard stats and CSV-loaded stats?’ is closed to new replies.