I’m using Live.getLastVisitsDetails method:
The API doc says that we can pass in something like &period=day&date=last10 to get the recent X days data, but I got error message below:
Error: Date format must be: YYYY-MM-DD, or ‘today’ or ‘yesterday’ or any keyword supported by the strtotime function (see PHP: strtotime - Manual for more information)
I tried to filter the return by actionUrl: &segment=actionUrl=@some_url
, and I got
{“result”:“error”,“message”:“Segment ‘actionUrl’ is not a supported segment.”}
How should I achieve that goal? I refer to Segmentation: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3 , but how do I know what are the specific segments supported in Live.getLastVisitsDetails, or other API methods?
my version is 2.14.3. Thanks.