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

Hide the meta data field within the Reporting API #20062

Open
Chardonneaur opened this issue Nov 29, 2022 · 2 comments
Open

Hide the meta data field within the Reporting API #20062

Chardonneaur opened this issue Nov 29, 2022 · 2 comments
Labels
c: APIs For bugs and features in the Matomo HTTP and plugin APIs.

Comments

@Chardonneaur
Copy link

Hi team,
Would it be possible to hide the metadata field when using the reporting API?
For example here: https://demo.matomo.cloud/index.php?module=API&format=html&idSite=1&period=day&date=yesterday&method=Actions.getPageUrls&expanded=1&translateColumnNames=1&language=fr&token_auth=anonymous&filter_limit=3&showColumns=nb_hits
even by using the showColumns parameter, the meta data column still appearing. As a result we need to process back our result whereas the interest of using API parameters is to get a clean data feed.

@Chardonneaur Chardonneaur added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Nov 29, 2022
@bx80
Copy link
Contributor

bx80 commented Nov 29, 2022

Hi @Chardonneaur, thanks for highlighting this 👍

The _metadata column is a special column so it is being ignored by the showColumns / hideColumns parameters. I can't think of any reason why it shouldn't be possible to hide this column via the API parameters.

I've assigned this change for prioritization.

@bx80 bx80 added c: APIs For bugs and features in the Matomo HTTP and plugin APIs. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Nov 29, 2022
@bx80 bx80 added this to the For Prioritization milestone Nov 29, 2022
@sgiehl
Copy link
Member

sgiehl commented Nov 30, 2022

This might actually be something special in the html export only. Neither xml nor json export does contain the metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: APIs For bugs and features in the Matomo HTTP and plugin APIs.
Projects
None yet
Development

No branches or pull requests

3 participants