matomo-org / matomo-mobile-2

Matomo Mobile 2 App - The official Git repository! Liberating Web Analytics on the go!
https://matomo.org/mobile
Other
104 stars 31 forks source link

Implement Live! widget in Piwik Mobile #1956

Closed anonymous-matomo-user closed 13 years ago

anonymous-matomo-user commented 13 years ago

I do! Is there a way to have live visitors displayed on the mobile version?

tsteur commented 13 years ago

Attachment: site.png

tsteur commented 13 years ago

Attachment: live1.png

tsteur commented 13 years ago

Attachment: live2.png

tsteur commented 13 years ago

Attachment: live3.png

tsteur commented 13 years ago

Attachment: iconsbelowdate.png

tsteur commented 13 years ago

Attachment: iconsbesidedate.png

tsteur commented 13 years ago

Attachment: VisitorDetail1.png

tsteur commented 13 years ago

Attachment: VisitorDetail2.png

tsteur commented 13 years ago

Attachment: VisitorDetail3.png

tsteur commented 13 years ago

Attachment: VisitorDetail4.png

tsteur commented 13 years ago

Attachment: livev4.png

tsteur commented 13 years ago

Attachment: visitor_v4_1.png

tsteur commented 13 years ago

Attachment: visitor_v4_2.png

tsteur commented 13 years ago

Attachment: visitor_v4_3.png

mattab commented 13 years ago

Attachment: example visitor log with ecommerce order.png

tsteur commented 13 years ago

Attachment: visitor_v5.zip

tsteur commented 13 years ago

Attachment: Live_v6.zip

halfdan commented 13 years ago

Please ask these kind of questions in the forum => http://forum.piwik.org

Afaik there is no Live visitor feature in the mobile version yet.

anonymous-matomo-user commented 13 years ago

I assumed so and I did post as feature request ;=)

mattab commented 13 years ago

This requires the Live! API to be stabilized and maybe available via the Metadata API. This won't be done for a few releases as this is low priority, but definitely something we want to get done. Depends on fixing performance issues in #1966 as well.

mattab commented 13 years ago

(In [4349]) Refs piwik/piwik#1839 Simplyfying Live! plugin, removing unused code, cleaned up API, only 3 useful functions left with proper names (and more performant too),

Refs #1956 while Live! is not metadata compliant, I now consider the API stable (efficient + function names & parameters) and Piwik Mobile can start using it :) Let me know if you need any other api/ doc / info :)

NB: build will fail since it's pending another change in tracking API which I'll commit asap

tsteur commented 13 years ago

I've attached some different screens regarding UI. Any opinions? Further UI suggestions are very welcome.

My favourite is live3.png

sgiehl commented 13 years ago

Jepp, live3.png is my favourite, too.

mattab commented 13 years ago

Exciting stuff users will love it!! :)

Also think test3 is best, makes good use of UI space /pixels.

Some feedback on UI:

Last 24 hours | 4 visits, 34 pageviews
Last 30 minutes | 2 visits, 24 pageviews

Also it will save a row (only 2 rows instead of 3). Maybe font needs to be a bit smaller to make sure it fits in the width of screen without using 2 lines if for example 8374 visits, 30324 Pageviews (long numbers)

It's best if Piwik Mobile doesnt hardcode any URL of icons, so if there are some please let me know I'll add them to xml output.

mattab commented 13 years ago

(In [4773]) Refs #1956

mattab commented 13 years ago

(In [4779]) Adding translation "from" Refs #1956

tsteur commented 13 years ago

Hey Matt,

good ideas! thanks.

Is there a documentation about all possible actionDetail types like "ecommerceOrder?" and their properties?

I'm looking forward to get more feedback...

mattab commented 13 years ago

cool :)

Some ideas:

DATE - 3 ICONS
REFERRER
N PAGEVIEWS (5min 24s)}

I think it makes sense: line 1 = visitor, line 2 = referrer, line 3 = actions on site

Page URL: $URL ($ICON outlink)
Time: $TIME

For normal page view (type == action)

Page Title: $TITLE
Page URL: $URL
Time: $TIME

Regarding standard output, I have compiled a list of different action types currently supported: http://pastebin.com/b1d8jKeB

To see a most recent Live API output for non actions (for visitor attributes) check this file: https://github.com/piwik/piwik/blob/master/tests/integration/expected/test_ecommerceOrderWithItems__Live.getLastVisitsDetails_day.xml

In 1.5 there were a few additions to the output which are not yet on the demo but I will upgrade in the next few hours with latest RC so you can see output in your tests. But, ecommerce is not setup on demo so there won't be ecommerce examples, just the static files there.. is it possible to use these static files for building UI? I plan to make visitor generator generate ecommerce data, but not done yet..

Does it help?

tsteur commented 13 years ago

I've attached some new screenshots what I've done so far.

I think Last24 hours/ 30 minutes looks ok now. Made the "values" a bit bigger as they are more important than the titles "Last 24 hours...". If there is not enough space, they will automatically wrap.

There is now also enough space for the icons beside the date. There is possibly a problem on 240x320 devices but I think that's ok.

I've not finished the work on "Visitor - Details". It still looks a bit ugly and I currently have no idea how to display the "itemDetails" of the types "ecommerceOrder & ecommerceAbandonedCart". Do we need these information? Or is "revenue", "revenueTax", "revenueShipping", ... enough?

By the way: Do all icons have the same size? 18w x 12h?

Yes, it does help! Thank you

mattab commented 13 years ago

NICE improvements!

Live review:

Details review:

Products in Ecommerce more information

I attach to the ticket a screenshot of the Piwik visitor log when there is an ecommerce order with products inside. <itemDetails> is the list of all products found in the Cart, or in the Ecommerce order. Maybe they can be displayed similarly to the screenshot: Example for Ecommerce order:

$ICON Ecommerce Order ($ORDERID)
Revenue: $X $CURRENCY, Subtotal: $Y $CURRENCY, $ETC.
List of Products (Quantity: $QUANTITY):
 * $PRODUCT NAME ($PRODUCT SKU), $PRODUCT_CATEGORY
 - $PRICE $CURRENCY - Quantity: $QTY
 * Product 2 idem
 * Product 3 etc. idem

Icons: icons have different sizes.. outlink is 10x9, countries are 18x12, browsers & plugins are 14x14, others are 16x16... Do you need to know sizes of icons in advance? I prefer not to add icon sizes in Live output (too much info) but maybe you can hardcode in the code if you need the sizes before fetching? What do you think?

Btw, is there a caching system for caching all icons from piwik?

tsteur commented 13 years ago

Hey,

I've attached some updated screens. I display values only if they are "set" now.

I already use "serverTimePretty and serverDatePretty". There was just an error in the mockup.

Titanium caches the icons automatically. I've hard coded the sizes now.

Indeed. I need some translations

Todo list:

mattab commented 13 years ago

SO NICE!! ;)

Some feedback:

Everything else looks great, this is exciting!!

tsteur commented 13 years ago

(In [4866]) refs #1956 implemented live (real time), visitor log and a detailed visitor view for Piwik Mobile. Works on Android as well as iOS

tsteur commented 13 years ago

Updated screenshots :)

"From Google" is clickable now if a referrerUrl is defined. The urls in actions are not yet clickable. It simply opens the system browser and Piwik Mobile is still opened in the "background".

I'll add the new translations in en.php today or tomorrow. Works now also on Android but I have to test it on some devices regarding performance (especially whether scrolling is fast). Visitor Log is also implemented.

I still have to display icons for Country/Browser/OS in "visitor screen". I'll create a new ticket for this and try to implement it for a further release. Layouting is no fun with Titanium :)

Let me know if you have some further ideas. It feels good.

tsteur commented 13 years ago

The performance on an older Android device (500MHZ, 196MB RAM) may be a bit better, but is surprisingly good.

tsteur commented 13 years ago

(In [4877]) refs #1956 do not use an already rendered visitorRow again on a refresh (we have to render the row again), otherwise the visitorRow will be displayed multiple times on iOS

tsteur commented 13 years ago

(In [4878]) refs #1956 added visitor translation, renamed some other translations

mattab commented 13 years ago

Great it looks perfect now :) I assume that Ecommerce Cart/Order with products will display like on the mockup you showed earlier?

For icons, Country/Browser/OS and also maybe add the "Goal" icon after the text "Visitor converted N goals" ?

Excited to see this released!!

tsteur commented 13 years ago

(In [4885]) refs #1956 added translations for real time widget in Piwik Mobile and added some other missing translations

tsteur commented 13 years ago

(In [4914]) refs #1956 restart autoRefresh after resuming the app on iOS

tsteur commented 13 years ago

(In [4916]) refs #1956 display time and date from firstAction in visitor log, not lastAction

tsteur commented 13 years ago

(In [4929]) fixes #1956 always prefer the usage of maxVisitId and do display a loading message while fetching data