Plack::Middleware::Matomo - a middleware to track usage information with Matomo
builder { enable "Plack::Middleware::Matomo", id_site => "my-service", base_url => "https://analytics.openaire.eu/piwik.php", token_auth => "secr3t", view_paths => ['record/(\w+)/*'], download_paths => ['download/(\w+)/*'], oai_identifier_format => 'oai:test.server.org:%s', ; $app; }
Required. The ID of the repository.
Required. The URL of the Matomo endpoint.
Required. The authorization token.
One of these is required. Provide an array ref of regexes to match.
Required. The format of the OAI identifier format of the repository.
Following the spec from https://developer.matomo.org/api-reference/tracking-api.
Vitali Peil <vitali.peil at uni-bielefeld.de>
Copyright 2019- Vitali Peil
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Plack::Middleware, Plack::Builder
To install Plack::Middleware::Matomo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Matomo
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Matomo
For more information on module installation, please visit the detailed CPAN module installation guide.