I would like to show on a web site two informations from Piwik witch is install on the same server in a different database. I would like to put on the footer of this web site :
Site views XX times / Pages views XX times
I would like to show this statistics from the beginning of the web site.
So my question is, is it possible to put a code to show it (number of pages views and number of visits) in 1 line ?
Thanks for your answers.
Please refer to the source for the example plugins, and use the API to get the results you desire.
For a similar example, check out piwik/misc/api_community_sticker.php
This is a simple php script that calls the API to request 2 simple data points (visitors for the last 2 days, and number of downloads for a specific file), and prints them out.
Could this also be done by developing a custom plugin and then integrate it using EmbeddingWidgets ?
Maybe this could be a new kind of widget: widgets which are exclusively intended to be included on tracked websites to provide visiting users information about the site they're browsing ?
Compared to existing widgets, those widgets would be contextualized according to the page they are integrated to or according other parameters.