Matomo tracking for TDP applications based on provenance graph commands.
The tracking starts when a URL to a Matomo backend is set in the config.js
.
The site ID corresponds with the Matomo site.
{
"matomo": {
"url": "https://matomo.my-example-domain.com/", // matomo url with a trailing slash
"site": "1"
}
}
The tracked default provenance commands from tdp_core are defined in actions.ts.
Add a list of custom events when initializing the tracking:
const trackableActions: ITrackableAction[] = [
// id = phovea extension id
{id: 'targidCreateView', event: {category:'view', action: 'create'}},
];
trackApp(app, trackableActions);
git clone https://github.com/datavisyn/tdp_matomo.git
cd tdp_matomo
npm install
npm test
npm run build
This repository is part of Phovea, a platform for developing web-based visualization applications. For tutorials, API docs, and more information about the build and deployment process, see the documentation page.