Distinct statistics for a given article and/or time range #9
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
phpBO/SemmelstatzR#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How about a feature that allows you to get distinct statistics of single articles and/or time-ranges. For example:
"Show me, how often a distinct article was read in a given time range"
Could be done with a 2-step-interface. First, select an article (via a search), then select a date/time range with 2 date/time fields (start date/end date).
"Show me, which articles have been read on day X"
Sometimes, I find statistics like this interesting, because certain articles show a "peak" on the day they were released, but semmelstatz only gives you statistics for the current day.
A first SQL-draft for the second statistic looks like this:
SELECT post_title AS posttitle, post_name AS postname, COUNT( wp_statz.page ) AS count, guid AS postid FROM wp_posts, wp_statz WHERE wp_statz.page = wp_posts.ID AND time >= 'YYYY-MM-DD 00:00:00' AND time <= 'YYYY-MM-DD 23:59:59' GROUP BY postid ORDER BY count DESC LIMIT 10;