All Projects → matomo-org → Matomo Nodejs Tracker

matomo-org / Matomo Nodejs Tracker

Licence: mit
A Node.js wrapper for the Matomo (Piwik) tracking HTTP API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Matomo Nodejs Tracker

Pymarketstore
Python driver for MarketStore
Stars: ✭ 74 (-23.71%)
Mutual labels:  analytics
Ml
A high-level machine learning and deep learning library for the PHP language.
Stars: ✭ 1,270 (+1209.28%)
Mutual labels:  analytics
Ds With Pysimplegui
Data science and Machine Learning GUI programs/ desktop apps with PySimpleGUI package
Stars: ✭ 93 (-4.12%)
Mutual labels:  analytics
Posttrends
Simple analytics platform for Instagram.
Stars: ✭ 83 (-14.43%)
Mutual labels:  analytics
Docker Superset
Repository for Docker Image of Apache-Superset. [Docker Image: https://hub.docker.com/r/abhioncbr/docker-superset]
Stars: ✭ 86 (-11.34%)
Mutual labels:  analytics
Osm Analytics
OSM Analytics lets you interactively analyze how specific OpenStreetMap features are mapped in a specific region.
Stars: ✭ 87 (-10.31%)
Mutual labels:  analytics
Open Bank Mark
A bank simulation application using mainly Clojure, which can be used to end-to-end test and show some graphs.
Stars: ✭ 81 (-16.49%)
Mutual labels:  analytics
Laravel piwik
An Interface to Piwik's Analytics API for Laravel (Composer Package).
Stars: ✭ 95 (-2.06%)
Mutual labels:  analytics
Analytics Vue
The hassle-free way to integrate analytics into your Vue application.
Stars: ✭ 87 (-10.31%)
Mutual labels:  analytics
Tag Manager
Free Open Source Matomo Tag Manager - A simple way to manage and maintain all of your (third-party) tags on your website.
Stars: ✭ 91 (-6.19%)
Mutual labels:  analytics
Locustdb
Massively parallel, high performance analytics database that will rapidly devour all of your data.
Stars: ✭ 1,250 (+1188.66%)
Mutual labels:  analytics
Nether
Building blocks for gaming on Azure
Stars: ✭ 85 (-12.37%)
Mutual labels:  analytics
Rels
Github release analytics for the console
Stars: ✭ 90 (-7.22%)
Mutual labels:  analytics
Google Searchconsole
A wrapper for the Google Search Console API.
Stars: ✭ 83 (-14.43%)
Mutual labels:  analytics
Setup
My own front end web development set up, covering everything from operating system to analytics.
Stars: ✭ 93 (-4.12%)
Mutual labels:  analytics
React Native Firebase
🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
Stars: ✭ 9,674 (+9873.2%)
Mutual labels:  analytics
Shynet
Modern, privacy-friendly, and detailed web analytics that works without cookies or JS.
Stars: ✭ 1,273 (+1212.37%)
Mutual labels:  analytics
Logisland
Scalable stream processing platform for advanced realtime analytics on top of Kafka and Spark. LogIsland also supports MQTT and Kafka Streams (Flink being in the roadmap). The platform does complex event processing and is suitable for time series analysis. A large set of valuable ready to use processors, data sources and sinks are available.
Stars: ✭ 97 (+0%)
Mutual labels:  analytics
Graf
A simple git log analyzer gem
Stars: ✭ 94 (-3.09%)
Mutual labels:  analytics
Laravel Analytics
Analytics for the Laravel framework.
Stars: ✭ 91 (-6.19%)
Mutual labels:  analytics

Matomo Tracker NPM version Build Status

A wrapper for the Matomo Tracking HTTP API

Usage

First, install matomo-tracker as a dependency:

npm install --save matomo-tracker

Then, use it in your project:

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 tracking request: ', err);
});

// Track a request URL:
// Either as a simple string …
matomo.track('http://example.com/track/this/url');

// … or provide further options:
matomo.track({
  url: 'http://example.com/track/this/url',
  action_name: 'This will be shown in your dashboard',
  ua: 'Node.js v0.10.24',
  cvar: JSON.stringify({
    '1': ['custom variable name', 'custom variable value']
  })
});

// … or trackBulk:
var events = [{
  '_id': 'AA814767-7B1F-5C81-8F1D-8E47AD7D2982',
  'cdt': '2018-03-22T02:32:22.867Z',
  'e_c': 'Buy',
  'e_a': 'rightButton',
  'e_v': '2'
},{
  '_id': 'AA814767-7B1F-5C81-8F1D-8E47AD7D2982',
  'cdt': '2018-03-22T02:33:52.962Z',
  'e_c': 'Buy',
  'e_a': 'leftButton',
  'e_v': '4'
}];
matomo.trackBulk(events, (resData) => {
  // done.
})

That's it. For a complete list of options, see Matomo's Tracking HTTP API Reference.

Advanced usage

If you renamed the tracking file piwik.php or matomo.php of your matomo instance, the following error will be thrown:

new MatomoTracker(1, 'http://matomo.my-site.com/my-file.php'))
// ERROR: A tracker URL must end with "matomo.php" or "piwik.php"

To skip this check, simply pass true as third argument to the constructor:

new MatomoTracker(1, 'http://matomo.my-site.com/my-file.php', true))
// OK

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].