Skip to main content

Matomo tracking for TDP applications

Project description

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.
  • 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 System.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 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.

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-4.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

tdp_matomo-4.0.0-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: tdp_matomo-4.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for tdp_matomo-4.0.0.tar.gz
Algorithm Hash digest
SHA256 1d02a55d13bb527dd0cd3c314bc8cefddddbfa6b4559d5861e989a2f02ed6798
MD5 985ea33ddfbb7cb2690c73139fbc1564
BLAKE2b-256 c715f509c17bea705eb18619db2350cae060bd6152fe2f580a21a663c7eaf0be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tdp_matomo-4.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for tdp_matomo-4.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3f588e00f8584543dbcf8c72a4196fe0d557c368707df590b2a446293ce96e38
MD5 f4134bbf34ab8d1b77223650775d808e
BLAKE2b-256 3e70323b50e9b815eeeab3e5c2e6ac1ad4de4158c8bd16688e2e27ac88097c88

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