Skip to main content

Matomo tracking for TDP applications

Project description

tdp_matomo

Target Discovery Platform Target Discovery Platform NPM version Build 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.
  • Enable the md5 encryption of user names to prevent plaintext logging (e.g., when using Matomo with LDAP login)
{
  "matomo": {
    "url": "https://matomo.my-example-domain.com/", // matomo url with a trailing slash
    "site": "1",
    "encryptUserName": false
  }
}

Provenance Commands

Provenance commands using the extension point actionFunction must be annotated with the property tdp_matomo in order to be found and tracked. The tdp_matomo configuration property requires the properties category and action from the IMatomoEvent (in src/matomo.ts), which can contain arbitrary strings.

  registry.push('actionFunction', 'targidCreateView', function() {
    return import('./internal/cmds');
  }, {
    factory: 'createViewImpl',
    tdp_matomo: {
      category: 'view',
      action: 'create'
    }
  });

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 the Target Discovery Platform (TDP). For tutorials, API docs, and more information about the build and deployment process, see the documentation page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tdp-matomo, version 6.0.0
Filename, size File type Python version Upload date Hashes
Filename, size tdp_matomo-6.0.0-py2.py3-none-any.whl (4.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size tdp_matomo-6.0.0.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page