matomo-javascript-client
TypeScript icon, indicating that this package has built-in type declarations

0.9.7 • Public • Published

Matomo javascript client

npm package

Build status Coverage Known Vulnerabilities

A matomo javascript client which can be used both in nodejs and browsers.

Example

import MatomoClient from 'matomo-javascript-client';
 
const client = new MatomoClient('your-piwik-domain.example/piwik.php', 1);
client.track({
  actionName: 'push_it',
  url: 'https://example.com',
  uniqueUserId: '3b99e3e0759811e8',
  randomString: '905e6838-4c8e-11e9-8646-d663bd873d93',
  apiVersion: '1' 
});

More examples of usage can be found in the tests.

Installation

npm install -save matomo-javascript-client

Package Sidebar

Install

npm i matomo-javascript-client

Weekly Downloads

0

Version

0.9.7

License

MIT

Unpacked Size

10.7 kB

Total Files

12

Last publish

Collaborators

  • rawland