Segment on VisitCount not working(?)

Hi,

I try to run a HTTP-API with a segment on VisitCount.
Since I need only pagetitles who have less then a certain count of visits.
Only I do see the segment but I do not see an effect on the data.
I have used the demo-URL to mark my issue:

http://demo.piwik.org/?module=API
&method=UserCountry.getCountry
&idSite=3&
date=yesterday&period=day&
format=xml&
segment=visitCount%3C4

The last row = segment=visitCount<4.
But in the XML-data I still see nb_visits over 4.

What am I doing wrong or how can I really excersise this segment?

Thanks in advance.
Julia

Hi there,

visitCount segment means Number of visits by one visitor, so it will select visits that have visited this website at least N times before this current visti.

What you want is to filter out the result set ? This is not possible to only have the rows with nb_visits > 4 returned, so you will have to do this with your script that calls the API

Hi Matt,

Can be closed. We did find a other way.

Thanks in advance.
Julia

Hi!
How I can get rows with UserCountry.getCountry, where nb_visits > 10 or bounce_count > 10 or sum_daily_nb_uniq_visitors < 3000 …?
http://demo.piwik.org/?module=API&method=UserCountry.getCountry&idSite=7&period=range&date=2016-05-10,today&format=JSON&token_auth=anonymous

Thx.

Hi there,

It’s not possible yet to do this, but we’d love to implement it. Could you please create a feature request on our tracker? https://github.com/piwik/piwik/issues