Hi, I’m looking for showing the most popular page on my website.
Anybody have a code for create this shortcode please?
Best
Hello @Draguignan
Not sure to understand what you want to do: Do you want to embed a graph sorting all your pages visits to highlight the most visited ones? Or do you want to get the most visited page from the API?
Kind regards
Mat
Hello @Matthieu_Mary
In fact, I want use the Matomo’s statistic for showing the most popular page in a Wordpress page with a shortcode.
Hello @Draguignan
You could try:
[matomo_report unique_id=Actions_getPageTitles report_date=thisyear limit=10]
Kind regards
Mat
Oh great, it’s possible to configure for linked the page?
Where is the documentation for this shortcode?
Hello @Draguignan
Unfortunately, the page cannot be linked.
But you can create a feature request if you want?
For now, there is no documentation for these shortcodes.
You can update the limit parameter (which defines the number of returned results), and the period studied in the report. It must be one of these values:
- today
- yesterday
- thisweek
- lastweek
- thismonth
- lastmonth
- thisyear
Kind regards
Mat
Here’s your feature request: