A Drupal 8 module that provides an API for querying a Matomo instance for usage data on individual nodes and file downloads.
In addition to the API, which other modules can use, this module includes a submodule, Islandora Matomo Blocks, which provides blocks for displaying the number of hits or visits on a node, the number of media downloads for a node, or a summed report of node hits/visits and media downloads. You enable these blocks like you would any other.
Hits are the total number of times a page was loaded or a file downloaded, while visits counts all page loads and file downloads from the same visitor within 30 minutes as a single visit.
- Clone this repo into your Islandora's
drupal/web/modules/contrib
directory. - Enable the module either under the "Admin > Extend" menu or by running
drush en -y islandora_matomo
. - The Islandora Matomo Blocks module must be enabled separately:
drush en -y islandora_matomo_blocks
.
Configuration options are available at Admin > Islandora > Islandora Matomo, or at admin/config/islandora/matomo
.