New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New report "Visitors Recency", days since last visit #583
Comments
See note in #1434 |
Example: For the month of August, Last visit the same day: X Last visit 1 day ago: Y Last visit 2 days ago: Z [..] Last visit 7 days ago Last visit 8-14 days ago Last visit more than 15 days ago Keep a counter 'last_visits_days' in log_visit See also #536 Recency
|
Schema update at least, to be done in 1.2 as part of 1st party cookie implementation. |
Not sure if this can be accommodated into this feature, but I would especially love to see this data in the Visitor's Log. (i.e., for each visit in the log, when was the last time this visitor came). |
I'd like to start working on this ticket, but I've got a couple questions:
Thanks in advance! |
Great news! :)
Should use the visitor_days_since_last field 2)Yes doable, but not displayed by default (too much noise). I propose to display it on hover over the date (in title tooltip). |
Came across a problem while implementing this. The 'days since last visit' report can't be applied to new visits. I can make the report only deal with returning visits, or I can display the count of new visits in the report. In the latter case, I could prepend a row to the report so it would look like this:
It would show more information, but might be a bit confusing. Which approach do you think is better? |
I think it makes sense to report "New visits" in the report. |
Attachment: Patch for issue #583, made for revision 5398. |
Just uploaded a patch for this issue. The patch is made for revision 5398. Could you review it and let me know your thoughts? Thanks in advance. One note, sorting is disabled for this new report, though I could change this. |
capedfuzz, great work. I have granted you SVN access (congratulations). With great power comes great responsability :) Enjoy the ride! |
(In [5411]) Fixes #583: Added "Days since last visit" report under Visitors > Engagement. Notes: The new report has been added to the Metadata API. |
Great commit!! Otherwise all looks good |
Attachment: all zeros |
If I use the visit generator, I get a result that isn't all 0s. If the specific visits you're viewing are exactly one year since the first visit, then I think I found the problem. Either way, I'm going to do some more testing (and possibly add another integration test). |
I did more testing, and it seems to work fine for me. I added the following code to the integration tests (not committed, just locally):
and everything worked as expected. Can you give me more information? |
Milestone 1.8.x Piwik 1.8.x deleted |
Hello, I would like to clarify on this feature for few cases
P.S. In my page I believe people look once a day, but 80+% of returning traffic is "0 days". |
@Akuukis the code is here: https://github.com/piwik/piwik/blob/2.13.1/core/Tracker/Request.php#L184-203 Piwik processes the value as accurately as possible. If a visitor first visited more than 86400 seconds ago, then it will have a "Days since first visit" of 1 or more |
We could provide a new report: days since last visit
Example
You have 1000 unique visitors;
- 500 are new visitors
- 300 visited your site 1 day ago
- 100 visited your site between 2 and 5 days ago
- 10 visited your site between 5 and 15 ago
- etc.
The text was updated successfully, but these errors were encountered: