You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to query metrics on an already predefined segment whose name is test or id is 1.
I have tried using the segment API and providing the following criteria &segment=name=test or&segment=id=1 but it seems not supported.
Specifying the segment ID or name is not possible currently. You would need to specify the actual segment definition. If needed, you could request the list of defined segments first to get the actual definition.
tsteur
added
answered
For when a question was asked and we referred to forum or answered it.
and removed
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
labels
May 28, 2019
Hello!
I would like to query metrics on an already predefined segment whose name is test or id is 1.
I have tried using the segment API and providing the following criteria &segment=name=test or&segment=id=1 but it seems not supported.
I could not find anything related to that in the documentation https://developer.matomo.org/api-reference/reporting-api-segmentation
Do I have to query the segment definition api first and applied it to the metrics api?
Thank you,
The text was updated successfully, but these errors were encountered: