Failed to use Live.getLastVisitsDetails with date=last10 and actionUrl segment


(Paul Lo) #1

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.


(Matthieu Aubry) #2

Hi @paullo0106

  1. please feel fre to creatre a bug report on Issues · matomo-org/piwik · GitHub

  2. actionUrl segment only works from Piwik 2.15.1-beta: I would like to test early beta and RC releases, how do I enable automatic updates to use these development versions? - Analytics Platform - Matomo