Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5819

getLastVisitsDetails with segments not returning expected data

$
0
0

@ddhahn wrote:

Hey all,

I’m working with the Live! API, specifically the getLastVisitsDetails function. I’d like to get select columns from this set of data over a period of a few years. I’ve read the documentation on this function and the segment function pretty thoroughly by now, but I’m getting some odd results and I can’t quite figure out what the deal is.

What I’m trying to do is get the list of visits that contain a certain Event Category over a given period of time. So, I’m using segmentation to limit my query to the event category I’m interested in. My query looks like this:

http://host/index.php?module=API&method=Live.getLastVisitsDetails&idSite=3&period=year&date=2016-01-01&format=xml&token_auth=myauthkey&filter_limit=100&segment=eventCategory==Media-Download

This returns 25 visits.

The problem is that I know (or have good reason to suspect) that there should be way more than 25 results. I would expect to hit the filter_limit of 100 rather readily. If I remove the segmentation, I do get 100 visits.

Another test was that if I remove the segmentation, but then search for the Media-Download action in the returning results, I get 29 results, not 25.

Something just seems off here and I’m hoping someone can guide me in the right direction.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5819

Trending Articles