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

How to show ImageGraph UserCountry filtered for specific url visited? #16518

Closed
McFlat opened this issue Oct 4, 2020 · 1 comment
Closed
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@McFlat
Copy link

McFlat commented Oct 4, 2020

I'm trying to show a image graph that shows visits by country for many urls, so a person can see number of visits per country for a specific webpage url. How can I format the report url to filter nb_visits to a given url?

/index.php?module=API&method=ImageGraph.get&idSite=2&apiModule=UserCountry&apiAction=getCountry&token_auth=anonymous&graphType=horizontalBar&period=month&date=today&width=500&height=250&columns=nb_visits&filter_pattern_recursive=.*

Screen Shot 2020-10-04 at 6 23 30 AM

@tsteur
Copy link
Member

tsteur commented Oct 4, 2020

Hi @McFlat you will want to use the segmentation feature see https://developer.matomo.org/api-reference/reporting-api-segmentation

If you have further questions about this be great to ask in our forum as we usually don't reply to questions here: https://forum.matomo.org/

Thanks @McFlat

@tsteur tsteur closed this as completed Oct 4, 2020
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Oct 4, 2020
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