matomo-nodejs-tracker:Matomo(Piwik)跟踪HTTP API的Node.js包装器

时间:2021-04-28 19:16:22
【文件属性】:
文件名称:matomo-nodejs-tracker:Matomo(Piwik)跟踪HTTP API的Node.js包装器
文件大小:28KB
文件格式:ZIP
更新时间:2021-04-28 19:16:22
nodejs analytics piwik JavaScript Matomo追踪器 Matomo跟踪HTTP API的包装器 用法 首先,安装matomo-tracker作为依赖项: npm install --save matomo-tracker 然后,在您的项目中使用它: var MatomoTracker = require ( 'matomo-tracker' ) ; // Initialize with your site ID and Matomo URL var matomo = new MatomoTracker ( 1 , 'http://mywebsite.com/matomo.php' ) ; // Optional: Respond to tracking errors matomo . on ( 'error' , function ( err ) { console . log ( 'error trackin
【文件预览】:
matomo-nodejs-tracker-master
----.gitignore(21B)
----.eslintrc(434B)
----package.json(987B)
----package-lock.json(73KB)
----.travis.yml(48B)
----LICENSE(1KB)
----index.js(4KB)
----README.md(2KB)
----test()
--------index.test.js(6KB)
----.editorconfig(173B)

网友评论