I’m trying to display each url statistics publicly with matomo and php.
For example i have 3 urls.
Url1: mysite.com/cart
Url2: mysite.com/cart2
Url3: mysite.com/cart3
I want to get the url with parameter in url and display the statistics of these urls on mysite.com/display.php?url=cart
I know how to get the url from parameter (url=cart) and put it in php variable in display.php page. I only don’t know how to use this url variable to display it’s statistics on display.php page.
This is the demo of exactly what i want to display on the display.php page: https://demo.matomo.cloud/?module=Widgetize&action=iframe&disableLink=0&widget=1&moduleToWidgetize=Transitions&actionToWidgetize=getTransitions&idSite=1&period=day&date=yesterday&disableLink=1&widget=1
I searched online and got this website: http://piwik.org/docs/analytics-api/reference/#Actions and Actions.getPageUrl() but couldn’t be able to make it. Couldn’t display exactly what you see on demo url on display.php
Please help me to do this.
Thank you,