You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can break these out into separate issues if that's preferable, but I'd like to propose that we add queries that will fetch, for a given URL, country data (that is, country of the client) and Matomo's pregenerated charts.
@mjordan, I am also happy to collaborate on this important feature. I think that all of the code handling would be in src/IslandoraMatomoService.php and src/IslandoraMatomoServiceInterface.php.
Should this issue also require a block related to each report type or would these new methods be called from islandora_repository_reports? I could see blocks that have settings that would allow it to be configured to a given country (should this always be the user's current Country?) and optionally filtered by the underlying node.
I can break these out into separate issues if that's preferable, but I'd like to propose that we add queries that will fetch, for a given URL, country data (that is, country of the client) and Matomo's pregenerated charts.
Here's a sample query that returns country data:
curl -v http://localhost:8000/matomo/index.php?module=API&method=UserCountry.getCountry&idSite=1&period=range&date=2000-01-01,2020-09-02&format=JSON&token_auth=7165b664aadfcf9d95532cb6e0879275&segment=pageUrl==http%3A%2F%2Flocalhost%3A8000%2Fnode%2F10
Here's a sample query that returns a chart, in this case showing the hits during the last 30 days:
curl -v -o chart.png "http://localhost:8000/matomo/index.php?module=API&apiModule=Actions&apiAction=get&method=ImageGraph.get&graphType=evolution&idSite=1&period=day&date=previous30&width=500&height=250&token_auth=7165b664aadfcf9d95532cb6e0879275&segment=pageUrl==http%3A%2F%2Flocalhost%3A8000%2Fnode%2F10"
Here's a sample chart returned by this query:
I am happy to work on this.
The text was updated successfully, but these errors were encountered: