Is it possible to see in real-time (e.g. the last 3 minutes, as is the default with Real Time Visitor Count) the most popular URLs? The API supports showing which URLs particular visitors are going to, but how to generate a report which shows which URLs have been visited the most in the past few minutes? E.g.
www.example.com/page91 25 visits
www.example.com/page65 17 visits
Etc.
Lukas
(Lukas Winkler)
January 10, 2018, 4:28pm
2
Hi,
I don’t think this is already possible with Matomo. But I like the idea as it could be useful for a lot of things.
It should definitely be possible to build something like this as a plugin.
I’m just a bit afraid that this is going to be hard to implement it in a performant way as it can’t really be cached or preprocessed much.
1 Like
Found this plugin called Top Pages By Actions:
https://plugins.matomo.org/TopPagesByActions
But it does not appear to work for version 3.
Lukas
(Lukas Winkler)
January 11, 2018, 6:50am
4
Hi,
I didn’t know about that plugin, but it really seems to do exactly what you want.
Maybe you could contact the developer and ask him about upgrading the plugin to Piwik 3. It shouldn’t be that hard .
Lukas
(Lukas Winkler)
January 11, 2018, 9:40pm
5
Hi,
Your problem inspired me to start a little initiative to find new maintainer for old plugins:
https://forum.matomo.org/t/adopt-a-plugin-dog/26869
1 Like
Lukas
(Lukas Winkler)
January 16, 2018, 4:37pm
6
@gueditor
I looked again into the TopPagesByActions
and as it seems to be quite simple, I tried migrating it to Matomo 3.
You can try out my version from here:
(e.g. by downloading https://github.com/Findus23/piwik-top-pages-by-actions/archive/master.zip and moving the folder in the zip to plugins/TopPagesByActions
)
While the User Interface is quite outdated and a bit buggy, that shouldn’t affect you as it is only fetching the API.
http://localhost/piwik/index.php?module=API&method=TopPagesByActions.getTopPagesByActions&idSite=1&lastMinutes=60&format=JSON&token_auth=anonymous
returns the following:
[
{
"number": "17",
"idaction_url": "5761",
"time": "0.00000000",
"idaction_name": null,
"name": "null",
"url": "http://localhost/piwik-1.9.3-b10.zip"
},
{
"number": "16",
"idaction_url": null,
"time": "0.00000000",
"idaction_name": "9",
"name": "non",
"url": "null"
},
{
"number": "10",
"idaction_url": "5730",
"time": "1.67167000",
"idaction_name": null,
"name": "null",
"url": "http://localhost/latest.zip"
}
]
Thanks Lukas. I’ll give it a try shortly. Much appreciated.
Lukas
(Lukas Winkler)
January 16, 2018, 4:55pm
8
Just keep in mind that there is no caching or preprocessing. Every api request triggers a sql query.
So you may want to test how performance and cache the result in your application.
It works very well Thanks. Performance is fine. I only need to run it a few times a day, so it’s exactly what I need. Really appreciate you doing this.
How can I make this work with Matomo 4.10.1? This is exactly what I’m missing in order to switch to Matomo once and for all.
It says it requires Piwik <4.0.0-b1.
1 Like
The repository initial owner has no more GitHub activity for more than 2 years, now…
I don’t know either if @Lukas has time to work on his fork…
Maybe @Mikel_Aguirre_Vera you can work on your own fork? (and then share )
Hi all! Real-time reports on popular URLs now would be a must-have feature for me, too. Is there some update here (or a workaround possibly?). Thanks a mile.
deltahf
(deltahf)
July 1, 2023, 1:58am
13
Just bumping this up to second what @AdminKP has said. This kind of data is really important for me as I want to see what content on my site is trending in real-time, not just what the latest visitors are doing.
AdminKP
September 6, 2023, 6:34pm
14
Any chance this could be delivered anytime soon, Matomo team?
Hi @AdminKP , @deltahf
Did you try Lukas solution?
@gueditor
I looked again into the TopPagesByActions and as it seems to be quite simple, I tried migrating it to Matomo 3.
You can try out my version from here:
(e.g. by downloading https://github.com/Findus23/piwik-top-pages-by-actions/archive/master.zip and moving the folder in the zip to plugins/TopPagesByActions)
While the User Interface is quite outdated and a bit buggy, that shouldn’t affect you as it is only fetching the API.
http://localhost/piwik/index.php?module=API&method=TopPage…
AdminKP
September 13, 2023, 6:23am
16
– Honestly, I was hoping for something more sustainable and delivered by core matomo devs rather than a 10 years old github
Hi @AdminKP
Then you could either:
Create a new issue in Matomo GitHub repo, or if found another similar add some comments in it
opened 02:35PM - 30 Apr 19 UTC
Major
Enhancement
# Summary
From the dashboard, several widget allow to see in real time some i… nformation about the visitors.
## Desired behavior
We can see a real time visitors counter but that can be useful to see which pages are visiting in real time.
> Have a new widget that allow to see the visited pages in real time.
opened 08:32AM - 22 Apr 22 UTC
Enhancement
Hello,
Google analytics (Universal) has a bug since a few weeks on the realti… me page and shows false numbers. According to what they said, they don't plan to fix this bug because they have developed the GA4 version. https://issuetracker.google.com/issues/228201905#comment283
But this new version does not allow to see the number of people connected on the site nor the number of page views per minute.
So I'm looking for an alternative and I found Matomo, but I notice that the Realtime page you propose doesn't give much information.
Do you think it would be possible to add the number of connected in real time and display the number of page views per minute? If we could find this same data on Matamo it would be great https://online-metrics.com/wp-content/uploads/2018/01/Real-Time-overview.png
On a daily basis, we used realtime to ensure that our sites were stable, combined with a monitoring system under grafana. This allowed us to intervene as quickly as possible, especially when we noticed a drop in page views per minute, for example.
I think that following the bug of google analytics many will seek an alternative.
Fork Lukas GitHub piwik-top-pages-by-actions plugin