Opened 4 years ago

Last modified 2 months ago

#1380 new New feature

LiveWidgets - Who Is Online?

Reported by: vipsoft Owned by:
Priority: normal Milestone: Future releases
Component: Plugins Wishlist Keywords:
Cc: Sensitive: no

Description (last modified by vipsoft)

We have received permission from Martin Angelov to include his "Who is online?" widget in Piwik.

See demo at:

To Do:

  • port to use Piwik backend, database, and images (e.g., country flags)
  • add to new LiveWidgets plugin
  • respect anonymous view access setting; more fine grained access will depend on #283

Attachments (3)

arrow_up.gif (1.3 KB) - added by vipsoft 4 years ago. (147.7 KB) - added by vipsoft 3 years ago.
Released under GPL by Martin Angelov
Flags widget image + counter.png (14.9 KB) - added by matt 3 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 4 years ago by vipsoft (robocoder)


  • connect.php - use Piwik's db connection instead
  • functions.php - get_tag() parses response; is_bot() is used to prevent direct access to the .php files by bots
  • geodata.php - returns top 15 countries with most visitors and flags
  • online.php - tracker and current count
  • table.sql - redundant; use Piwik's log_visit table

Re-mapping columns to Piwik:

  • id - idvisit
  • ip - location_ip
  • country - (n/a - use a translation lookup on the country code)
  • countrycode - location_country
  • city - (n/a - not used by "Who is online?"; could be mapped
  • dt - visit_last_action_time

comment:2 Changed 4 years ago by JulienM (JulienMoumne)

I would like to work on this ticket to have a feel on how plugins are developed within Piwik.

Could you please confirm that this widget would be added on the dashboard using "Add a widget" -> "Live!" -> "Who is online?"

Also, would the widget be integrated as is or should its design be remodeled
to look like the other widgets. E.g: should it be enclosed in the "widget container", I'm refering to :

<div id="" class="widget">
    <div class="widgetTop"/>
    <div class="widgetContent"/>

Changed 4 years ago by vipsoft (robocoder)

comment:3 Changed 4 years ago by vipsoft (robocoder)

  • Owner vipsoft deleted


  • use attached image, arrow_up.gif, to replace arrow.png
  • the demo's slide out effect to display the visitor-by-country panel isn't suited to iframes, so should not be implemented as a single Piwik widget
  • implement two separate Piwik widgets:
    • Live Counter
    • Live Visitors By Country
  • use JavaScript and jQuery to .load these two widgets, duplicating the effect in Martin's demo
  • may want to use setContentType from #1384

comment:4 Changed 4 years ago by matt (mattab)

Julien, you are welcome to work on it indeed :)

comment:5 Changed 4 years ago by vipsoft (robocoder)

  • Component changed from Core to New Plugin
  • Description modified (diff)
  • Summary changed from Who Is Online - widget to LiveWidgets - Who Is Online?

There's some ambiguity with the license and I haven't received a response from Martin yet, so I'll wrap this into a third-party plugin, in the interim.

comment:6 Changed 4 years ago by vipsoft (robocoder)

  • Milestone changed from 0 - Piwik 0.6.3 to Third Party Piwik Plugins
  • Owner set to vipsoft

Changed 3 years ago by vipsoft (robocoder)

Released under GPL by Martin Angelov

comment:7 Changed 3 years ago by vipsoft (robocoder)

  • Milestone changed from Third Party Piwik Plugins to Feature requests

comment:8 Changed 3 years ago by matt (mattab)

It would be nice to do this I think, would improve our 'marketingness' as we could maybe put a little piwik logo or a link in the output?

Also, this widget is a nice idea:

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

  • Owner vipsoft deleted
Note: See TracTickets for help on using tickets.