0.2.1 • Published 5 years ago

@analyticskit/matomo v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@analyticskit/matomo

Installation

yarn add @analyticskit/matomo

Usage

const Analytics = require('@analyticskit/matomo');

const analytics = new Analytics({
  url: 'https://matomo-uat.lawyer5.cn/matomo.php',
  siteId: '1'
});

// User identity
analytics.identify('1000001');

// Sending events
analytics.track(['home', 'GetNewsList']);

React Navigation integration

Single page website integration

License

MIT