I am using piwik hosted on innocraft. I have a javascript card that can be iframed on a page and have a few events associated with clicks on certain parts on the card. The events are logged in my piwik dashboard and I can get data for all events using a get request of the form
https://protograph.innocraft.cloud/?
module=API&
format=json&
idSite=2&
period=range&
date=2017-01-01,today&
method=Events.getCategory&
secondary_dimension=eventAction&
token_auth=my_auth_token
However I want data of visitors scoped by an event action or event name for which I try
https://protograph.innocraft.cloud/?module=API&
method=VisitsSummary.get&
idSite=2&
date=yesterday&
period=day&
format=json&
filter_truncate=5&
language=en&
segment=eventAction==start&
token_auth=my_token_auth
This is exactly as is given in the example on https://developer.piwik.org/api-reference/reporting-api-segmentation. This however gives me a result in the form
{
"nb_uniq_visitors": 0,
"nb_users": 0,
"nb_visits": 0,
"nb_actions": 0,
"nb_visits_converted": 0,
"bounce_count": 0,
"sum_visit_length": 0,
"max_actions": 0,
"bounce_rate": "0%",
"nb_actions_per_visit": 0,
"avg_time_on_site": 0
}
What could be the issue here