Opened 2 years ago

Closed 13 months ago

Last modified 13 months ago

#3131 closed New feature (fixed)

New dashboard widget to show real-time visitor count

Reported by: jshare Owned by: capedfuzz
Priority: major Milestone: 1.12 - The Great 1.x Backlog
Component: UI - UX (AngularJS, twig, less) Keywords: real-time
Cc: Sensitive: no

Description

The Chartbeat demo site shows their nifty dashboard widget in the upper-lefthand corner that displays in real-time how many people are active on your site.

At minimum, I'd like to have a widget that shows how many people are currently on the site. That count could be based on active sessions, for example.

Ideally, just like in Chartbeat, it would be nice to also know for those active sessions:

  1. the ratio of desktop:mobile referrals
  2. the ratio of direct:links:search:social referrals

Attachments (1)

chartbeat-onsite-widget.png (10.3 KB) - added by jshare 2 years ago.
Screenshot of Chartbeat's real-time visitor count widget

Download all attachments as: .zip

Change History (20)

Changed 2 years ago by jshare

Screenshot of Chartbeat's real-time visitor count widget

comment:1 Changed 2 years ago by matt (mattab)

  • Milestone changed from Feature requests to 1.8 Piwik 1.8

It would be very easy to have a new Widget showing the number of visits and page views in the last 2 min (which we could define as Real time)

We also would need to prepare a new report to clearly rerport Mobile visits VS non mobile visits. I created a new ticket for this: #3133

In chartbeat what do they mean by "concurrent visits" do you know ?

comment:2 Changed 23 months ago by matt (mattab)

  • Component changed from Core to UI - UX (tpl, js, css)
  • Milestone changed from 1.9 Piwik 1.9 to 1.8.x - Piwik 1.8.x

We now have the Mobile VS Desktop report in 1.8.1

comment:3 Changed 23 months ago by jshare

That IS a cool new report, but it's not real-time or even a sub-section of a real-time widget as I requested. But thanks for updating me. I upgraded to 1.8.1 and am loving the row reports

comment:4 Changed 21 months ago by matt (mattab)

  • Owner set to capedfuzz

What are your thoughts on this one, would you like to give a try to the Real time visitor count widget?

comment:5 Changed 20 months ago by matt (mattab)

  • Milestone changed from 1.8.x - Piwik 1.8.x to 1.8.4 - Piwik 1.8.4

comment:6 Changed 18 months ago by SteveG (sgiehl)

We can not really give the same report as chartbeat does. The chartbeat tracking pixel sends an update request every 10 seconds or so to tell the server that the user is still online. the graph shows the users which have send an request within the last X seconds.
I would suggest to build a plugin doing exactly that. It would also allow us to have more exactly visit durations.

comment:7 Changed 18 months ago by matt (mattab)

This will be done in this ticket #2041 to ping the page every N seconds

comment:8 Changed 16 months ago by matt (mattab)

  • Milestone changed from 1.9.10 - Piwik 1.9.10 to Feature requests

Postponing until specification is clarified

comment:9 Changed 13 months ago by matt (mattab)

  • Milestone changed from Feature requests to 1.12 - The Great 1.x Backlog

comment:10 Changed 13 months ago by jshare

Woohoo! Can't wait!

comment:11 Changed 13 months ago by capedfuzz (diosmosis)

  • Resolution set to fixed
  • Status changed from new to closed

In 1c181d9d94b38ecfec68fea902a6daa66a23ebaa:

Fixes #3131, add new auto-updating widget that displays the number of visitors, visits and actions in the last N minutes.

Notes:

  • Added visitors metric to result of Live.getCounters.

comment:13 Changed 13 months ago by halfdan

@jshare: You might also want to take a look at a plugin I recently wrote https://github.com/halfdan/piwik-barometer-plugin

comment:14 Changed 13 months ago by jshare

@halfdan pure awesomeness. I got this working right away once I upgraded my dev piwik install to 1.11.1 (from 1.9.x).

Does the barometer needle ever move, or is it just the barometer colors and numbers that change?

I also noticed the time barometer too, cool stuff.

comment:15 Changed 13 months ago by halfdan

@jshare, the needle moves depending on the number of visits you have. I haven't got around to animate the visit once it updates, but this will come. Barometer colors are fixed (25% red, 25-75% yellow, >75% green), but if you have a suggestion on how they should change, let me know.

If the needle didn't move for you but the numbers changed, then this indicates that the "visit in the last 30 minutes" vs. "max visits in 30min interval over 30days" ratio hasn't changed.

comment:16 Changed 13 months ago by matt (mattab)

  • Priority changed from normal to major

comment:17 Changed 13 months ago by jshare

Sweet! Onward and upward! Great to see this is happening.

comment:18 Changed 13 months ago by matt (mattab)

you'll be happy to know it's already available in latest beta: http://builds.piwik.org/piwik-1.12-b4.zip (which works beautifully btw)

comment:19 Changed 13 months ago by jshare

I upgraded my main site's Piwik install over the weekend to 1.11.1 and immediately put the barometer on the dashboard. Since it appeared, the numbers haven't changed at all in the past few days (from the left: 0 - 61 - 122 - 183). I would have thought that was the maximum number of visits in a 30min interval over 30days, but traffic has been trending upward the past few days, so I'd be surprised if that was true.

Note: See TracTickets for help on using tickets.