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

Need Contents.getContentName in Reporting HTTP API #15295

Open
feikede opened this issue Dec 20, 2019 · 2 comments
Open

Need Contents.getContentName in Reporting HTTP API #15295

feikede opened this issue Dec 20, 2019 · 2 comments
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@feikede
Copy link

feikede commented Dec 20, 2019

I'd like to report how often a "contentName" has been visited over time. But there's no such function in the reporting API. The Contents.getContentName() should be very much like

Actions.getPageUrl (pageUrl, idSite, period, date, segment = '')

but with a contentName as parameter, i.e.

Contents.getContentName (contentName, idSite, period, date, segment = '')

Same would be fine for contentPiece.

@tsteur
Copy link
Member

tsteur commented Dec 20, 2019

@feikede I reckon you want to use the existing getContentNames API with a label=$contentName parameter? Alternatively, filter_pattern should work as well see https://developer.matomo.org/api-reference/reporting-api

@tsteur
Copy link
Member

tsteur commented Dec 20, 2019

AFAIK that's how Matomo does it as well in over time reports

@Findus23 Findus23 added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

4 participants