openaire / OpenAIRE-Piwik-DSpace

OpenAIRE Piwik plugins for DSpace
4 stars 0 forks source link

OpenAIRE Matomo plugin for DSpace

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.

Download patch

Patch for DSpace v.4

Patch for DSpace v.5

Patch for DSpace v.6

Patch for DSpace v.7

Validate and Apply the patch

Follow the steps below:

git apply --check patchfile
git apply --whitespace=nowarn --reject patchfile

Configure tracker parameters

Build and Deploy the patch

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

Configure SQLite DB for missing requests

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

Updated Patch with SQLite for DSpace v.4

Updated Patch with SQLite for DSpace v.5

Updated Patch with SQLite for DSpace v.6

Restart Tomcat server

Tomcat server restart is required to apply the changes.