DSpace implementation for OpenAIRE Matomo tracking.
Tracks usage activity for OpenAIRE usage statistics service.
Contact dpierrakos@gmail.com to request an OpenAIRE Matomo Site ID and an Authentication Token.
NOTE: The patches require the source release of a DSpace to be validated and recompiled.
Follow the steps below:
git apply --check patchfile
git apply --whitespace=nowarn --reject patchfile
Run the following commands to rebuild and deploy the tracker in DSpace.
mvn clean package
Change the working directory to [dspace-source]/dspace/target/dspace-installer
ant update
In case of Matomo connectivity issues an SQLite Database is used to store missing requests.
[dspace.dir]/bin/dspace resend-to-matomo -create
[dspace.dir]/bin/dspace resend-to-matomo -retry
After sending the missing requests, execute the following command to delete submitted requests from the DB
[dspace.dir]/bin/dspace resend-to-matomo -delete
Updated Patch with SQLite for DSpace v.4
Updated Patch with SQLite for DSpace v.5
Updated Patch with SQLite for DSpace v.6
Tomcat server restart is required to apply the changes.