@dasseya1 opened this Issue on March 19th 2019

We are currently using Matomo to track visitors on several web apps. We are calling the API to get daily data. Sometimes, some properties are missing from the results. Is it a known issue? Will this be addressed soon?

@tsteur commented on March 19th 2019 Member

Can you be maybe more specific what is sometimes missing from what results?

@dasseya1 commented on March 19th 2019

API URL: https://.../index.php?&module=API&method=API.get&format=JSON&idSite=1&period=day&date=previous3&token_auth=...

Result:
{ ..., "2019-03-18": { "nb_uniq_visitors": 11, "nb_visits": 29, "nb_users": 6, "nb_actions": 413, "max_actions": 117, "bounce_count": 5, "sum_visit_length": 31982, "nb_visits_returning": 27, "nb_actions_returning": 398, "nb_uniq_visitors_returning": 11, "nb_users_returning": 6, "max_actions_returning": 117, "bounce_rate_returning": "19%", "nb_actions_per_visit_returning": 14.7, "avg_time_on_site_returning": 1140, "nb_conversions": 0, "nb_visits_converted": 0, "revenue": 0, "conversion_rate": "0%", "nb_conversions_new_visit": 0, "nb_visits_converted_new_visit": 0, "revenue_new_visit": 0, "conversion_rate_new_visit": "0%", "nb_conversions_returning_visit": 0, "nb_visits_converted_returning_visit": 0, "revenue_returning_visit": 0, "conversion_rate_returning_visit": "0%", "nb_pageviews": 255, "nb_uniq_pageviews": 145, "nb_downloads": 0, "nb_uniq_downloads": 0, "nb_outlinks": 6, "nb_uniq_outlinks": 6, "nb_searches": 63, "nb_keywords": 15, "nb_hits_with_time_generation": 250, "avg_time_generation": 0.033, "bounce_rate": "17%", "nb_actions_per_visit": 14.2, "avg_time_on_site": 1103 } }

The issue is that the API call doesn't return all the properties every time. Sometimes, nb_uniq_visitors or bounce_count or something else doesn't appear in the result.

Is it a known issue?

@tsteur commented on March 19th 2019 Member

nb_uniq_visitors may not be returned eg for month or yearly or ranges. bounce_count not sure. You mean you request the same API method with same information and it's sometimes not returned?

@dasseya1 commented on March 19th 2019

Is there any way to return the nb_uniq_visitors every time the API call is made (e.g. for month or year or ranges)?

@tsteur commented on March 19th 2019 Member
@dasseya1 commented on March 19th 2019

Is it the only property that must be manually enabled to appear in the API call results?

@tsteur commented on March 19th 2019 Member

Yes AFAIK. It should also enable nb_users or something.

@dasseya1 commented on March 19th 2019

Could you provide me a URL (web page) that shows the list of properties that must be enabled before they show in the API call results?

@tsteur commented on March 20th 2019 Member

I don't know what you mean? otherwise all properties of a report should show up AFAIK

@tsteur commented on March 26th 2019 Member

Let us know if there is anything missing or so.

This Issue was closed on March 26th 2019
Powered by GitHub Issue Mirror