0.9.7 • Published 5 years ago
matomo-javascript-client v0.9.7
Matomo javascript client
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