thinkh / tdp_matomo

Matomo tracking for TDP applications using provenance commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tdp_matomo Phovea NPM version Dependency Status

Matomo tracking for TDP applications based on provenance graph commands.

Configuration

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"
  }
}

Provenance Commands

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);

Installation

git clone https://github.com/datavisyn/tdp_matomo.git
cd tdp_matomo
npm install

Testing

npm test

Building

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.

About

Matomo tracking for TDP applications using provenance commands

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 70.0%Language:TypeScript 18.0%Language:Python 12.0%