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

Uploaded Source

Built Distribution

tdp_matomo-7.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-7.0.0.tar.gz.

File metadata

  • Download URL: tdp_matomo-7.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11

File hashes

Hashes for tdp_matomo-7.0.0.tar.gz
Algorithm Hash digest
SHA256 dcbdb9bb47cf868605789b8feb80946e14ef5cbb73dcf54679c9139bbec267b7
MD5 f9a946dc5116d57c55259194a7a8c898
BLAKE2b-256 40bc2f382a8d36101fd6afe29f83e36fea0bf0f11b7be9fa87e77892d026b67c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tdp_matomo-7.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.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11

File hashes

Hashes for tdp_matomo-7.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b17ea059dd9d7101935c1e6a46114d66a9d88a53bcd38534c0ffa9876bc4c7a
MD5 e277b0326e673f39031178577a22fea4
BLAKE2b-256 2ca865f74e76017d69d0524fe03451f186c0297ed41797daeafc439b6f1ea6d6

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