Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation API - Query by Segment ID or Name #14490

Closed
remster85 opened this issue May 27, 2019 · 2 comments
Closed

Segmentation API - Query by Segment ID or Name #14490

remster85 opened this issue May 27, 2019 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@remster85
Copy link

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,

@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label May 28, 2019
@tsteur
Copy link
Member

tsteur commented May 28, 2019

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 tsteur added this to the Backlog (Help wanted) milestone May 28, 2019
@remster85
Copy link
Author

Thank you tsteur

@tsteur 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants