Search code examples
phphighchartsmatomo

Matomo: report for single url


I am new to Matomo, I would use it to generate report for specific url in my website. For each page I needs all geoip graph, linechart, tables etc.

I watched demo and APIs but I didn’t find a way to do it with APIs or from panel demo (for a single page I can see only line charts in demo).

Is there a way to do it?


Solution

  • You can use the segment feature to filter everything by a query.

    If you want a single URL, then you should add a segment for Action URL is https://example.com/

    add a new segment for "Action URL is THEURL"

    These segements (which can also be preprocessed can also be created via the SegmentEditor API: https://developer.matomo.org/api-reference/reporting-api#SegmentEditor

    In addition you can segment every API query on the fly by adding an &segment= parameter: https://developer.matomo.org/api-reference/reporting-api-segmentation