Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show pages views (actions) and visits #1819

Closed
anonymous-matomo-user opened this issue Nov 16, 2010 · 3 comments
Closed

How to show pages views (actions) and visits #1819

anonymous-matomo-user opened this issue Nov 16, 2010 · 3 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

Hello,

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
Copy link
Contributor

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

@mattab
Copy link
Member

mattab commented Nov 17, 2010

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
Copy link
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

4 participants