Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing properties from Matomo (Piwik) API calls #14235

Closed
dasseya1 opened this issue Mar 19, 2019 · 10 comments
Closed

Missing properties from Matomo (Piwik) API calls #14235

dasseya1 opened this issue Mar 19, 2019 · 10 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@dasseya1
Copy link

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?

@dasseya1 dasseya1 changed the title Missing properties from Matomo (Piwik) API Missing properties from Matomo (Piwik) API calls Mar 19, 2019
@tsteur
Copy link
Member

tsteur commented Mar 19, 2019

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

@dasseya1
Copy link
Author

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
Copy link
Member

tsteur commented Mar 19, 2019

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
Copy link
Author

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
Copy link
Member

tsteur commented Mar 19, 2019

yes, does this help? https://matomo.org/faq/how-to/faq_113/

@dasseya1
Copy link
Author

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

@tsteur
Copy link
Member

tsteur commented Mar 19, 2019

Yes AFAIK. It should also enable nb_users or something.

@dasseya1
Copy link
Author

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
Copy link
Member

tsteur commented Mar 20, 2019

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

@tsteur tsteur closed this as completed Mar 26, 2019
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Mar 26, 2019
@tsteur
Copy link
Member

tsteur commented Mar 26, 2019

Let us know if there is anything missing or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants