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.

Source Distribution

tdp_matomo-6.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

tdp_matomo-6.0.0-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tdp_matomo-6.0.0.tar.gz.

File metadata

  • Download URL: tdp_matomo-6.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

File hashes

Hashes for tdp_matomo-6.0.0.tar.gz
Algorithm Hash digest
SHA256 febf0e0810f24269c94fe63ef07a1a3a3761c89bd39c3bea19f2006f68397118
MD5 195dbc2258d539dd3f1bca8ee5440c58
BLAKE2b-256 04811c60cb232f25dcf98842c5b82fbac52df44490f44a5a31cfcd64076a48f7

See more details on using hashes here.

File details

Details for the file tdp_matomo-6.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tdp_matomo-6.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

File hashes

Hashes for tdp_matomo-6.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 02a563ece62fd2a58eb91c4265e3627985879f2437c2a29c935b6616132fc092
MD5 f158789995a7185fd471e565f3d484f4
BLAKE2b-256 8aed9d613d909086d592e848ab0a39ac150e6b00154fe30e8845bfc5a277d01b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page