Skip to content

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

Notifications You must be signed in to change notification settings

badrange/matomo-javascript-client

 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%