Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Live: Returning visitor to open last visits for this visitor, in Visitor Log & Last visits widget #3343

Closed
mattab opened this Issue · 14 comments

5 participants

@mattab
Owner

Currently there is no easy way in Piwik to view all visits for a particular visitor who may be returning multiple times to the site.

I propose to expose this interesting information in Piwik:

  • In Live! widget and the Visitor Log, the Returning Visitor icon could be linked, and when click, open a popover with the last visits for the clicked visitor.
  • The date range request would change to be set to a larger date range to make sure we match the previous visits.

    • for some visitors we know daysSinceLastVisit so we have to extend the date range to include at least daysSinceLastVisit days in the past (and more, if visitCount > 1 )
    • for some we know daysSinceFirstVisit so we coud extend the range back to this date.
    • if we have no info, we can try select over the last year by default?
    • The goal is to select the date range not too big if we don't need to, but display at least the last 5-10 visits for a given visitor, in the popover.
  • The popover title would clarify what is displayed " 10 Last visits for Visitor ID 8574bcd37 "

  • the Popover would load the visitor log, segmented to the clicked visitor log: URL with &segment=visitorId=842758725bc
    • the URL ideally should be sharable with friends and colleagues and would load the same state (log visitor in the background for "today" eg. and the popover with the older date range?

This new view would allow piwik user to follow a users' journey on the site. Most experiences these days take several visits, and it will be extremely useful to see all visits logs in Piwik!

What do you think?

@hpvd

YES - this is really an important thing! Especially if you have a website with special or continuously new content (blog) with not that many new -but very often returning visitors.
So you could analyze their behavior one by one to get a feeling what is really important to them, and in addition you can analyze what happens exactly when you change things on the site: will they stay longer? will they return more often?
for those last two topics a statistic/graph would be very great also...

@peterbo
Collaborator

Attachment: As a quick patch to use the Visitor-Log to display recent (one month) visits from a given user. Capedfuzz, are you working on the feature or should I extend the solution to open a popover?
Refs_#3343-returning-visitor-show-in-log.patch

@peterbo
Collaborator

capedfuzz, are you working on this feature? If not (yet), I could tackle it.

@diosmosis
Collaborator

@peterb Sorry for the (very) late reply. No I'm not working on it at the moment. Also, feel free to message me directly on skype if you need a quick answer or I forget to reply to a comment.

@mattab
Owner

Peter would you like to commit your patch (feedback: add a label "View all visits" next to icon?)

Otherwise, please closet his ticket as the new feature is covered in: #3089

@peterbo
Collaborator

(In [7632]) Fixes #3343, added label "View all visits" next to "returning visitor"

@mattab
Owner

Nice one! Code review & bug reports:

  • when visitor log restricted to segment, show the segment in the title and rename to "View all visits for smaller lettersfor visitorId==66a6957adea36bc1[/small]"
  • It would be better to open in a popover the visitor log, because otherwise I notice a bug:
    • Clicking on any submenu will keep the &segment parameter to the visitor ID which is not expected in this case. Opening the report in a popover will help. Also it will help for: #3089
  • Also the popover can be closed to keep the exact display clicked before opening popover (for example user could hav ebrowsed many times and it would be a shame to lose the screen status by having to load back the default visitor log)
@mattab
Owner

Reopening because of the bug persisting the visitorId in the menu which will cause confusion. Vote for introducing popover for the visitor log segmented to visitor.

@anonymous-piwik-user

tested with piwik-1.10-b2.zip I found two things, which don't work very well imo

  • as segmentation counts on calendar month, e.g. now on Jan 2nd I would only see visits in January, not from 31.12.2012 despite the fact it's only 3 days ago - could this be made somehow differently so it works better (ideally force all periods)?

  • I'm used to open visitor logs in separate tabs and since this is done by js it won't work in new window, could this be altered so it works for new tabs as well?

thanks for all the effort, something I was really missing in the core.

cheers

@anonymous-piwik-user

and one more thing, I've made patch for myself which uses IP as hyperlink - this has some advantage, mainly as I'm going once a week or so thru reports from websites/search engines and if I see something interesting from new users, I want to display their history (basically if they returned). By using "returning visitor" icon one cannot use this approach. It would be great if the actual IP could be made hyperlink as well.

@peterbo
Collaborator

The returning visitor profile is a work in progress. Hyperlinking the returning visitor icon to the segmented visitor log only was the first workaround. Later, the visitor history /profile will open in a dedicated layer.

Linking the IP would not make much sense, because the IP often changes and a returning visitor is recognized not (only) by the IP.

For your case, you should write a small plugin which hyperlinks a visitor-ID to the segmented visitor log but this is out of the scope of this ticket.

@anonymous-piwik-user

Just to clarify, I did not mean to use IP value, I just used it as hyperlink which targeted user by unique visitorid (similar to what you do with the icon at the moment).

Anyway, thanks for input and looking forward for the user profile implementation. Is there a roadmap for this?

@mattab
Owner

In 79acbe6: Refs #3343 Displaying the Visitor Log in a popover for better UX

@mattab
Owner

the Visitor Profile has been implemented in Piwik 2.0 - and it is awesome :)

@peterbo peterbo was assigned by mattab
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.