Hi,
I am maintaining a third-party integration with Matomo using the Live.getLastVisitsDetails API.
My issue is that getting all available data for 1 day generates to many actions to handle, and i’m only interested in actions that have a specific goal ID.
Using the following parameters:
?module=API&format=json&method=Live.getLastVisitsDetails&idSite=5&period=range&date=2024-10-29,2024-10-29&filter_limit=5&filter_offset=0&segment=visitConvertedGoalId==1
I expect to get only actions with the goalID of 1, however, it seems to return all rows, where any actionDetail object includes a sibling matching that.
Note: The above query seems to remove entries that not does include the goal
e.g:
[
{
"type": "goal",
"goalId": 1,
[...]
},
{
"type": "goal",
"goalId": 32,
[...]
},
[...]
]
In the above example, i would expect the object with "goalId": 32
to be removed from the response. Is there a way to achieve that?
I only want actionDetail objects that match my query in the response.
This is a simplified version of my problem, in reality i would be interested in multiple goal IDs, but due to how this seems to be working, adding a more complex segment will result in all results to be returned, which defeats the purpose.
Any help or pointers would be greatly appreciated.
Thanks in advance