@anonymous-matomo-user opened this Issue on November 16th 2010


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.

@robocoder commented on November 17th 2010 Contributor

Please refer to the source for the example plugins, and use the API to get the results you desire.

@mattab commented on November 17th 2010 Member

For a similar example, check out piwik/misc/api_community_sticker.php

See the code in https://github.com/piwik/piwik/blob/master/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.

@julienmoumne commented on November 17th 2010 Member

Could this also be done by developing a custom plugin and then integrate it using EmbeddingWidgets ?

People wanting this feature would then only have to include the javascript tag on their pages.

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.

This Issue was closed on November 17th 2010
Powered by GitHub Issue Mirror