1
0
Fork 0
mirror of https://github.com/Findus23/MatomoLiteTracker.git synced 2024-09-16 12:33:44 +02:00
An experimental, much smaller alternative to matomo.js
Find a file
2023-04-22 00:26:28 +02:00
example track pageview on pageload 2022-04-26 21:57:39 +02:00
src support custom URL 2023-04-22 00:26:28 +02:00
.gitignore add performancetracking 2022-04-25 21:31:14 +02:00
build.ts initial version 2022-04-25 20:36:48 +02:00
LICENSE initial version 2022-04-25 20:36:48 +02:00
package-lock.json initial version 2022-04-25 20:36:48 +02:00
package.json add performancetracking 2022-04-25 21:31:14 +02:00
README.md update docs 2022-04-26 15:10:40 +02:00
tsconfig.json initial version 2022-04-25 20:36:48 +02:00

Matomo Lite Tracker

This is an experiment of building a more lightweight variant of matomo.js by removing rarely used features and support for old browsers.

Keep in mind this is:

  • experimental: I can't guarantee that it will work as expected
  • inofficial: This is not officially maintained by the Matomo team
  • incomplete: See below.

That said, if you are interested in trying it out, I'd be interested in hearing your feedback.

Advantages:

  • much smaller (1KB gzipped with only the core code)
  • easier to bundle in applications

Features

  • tracking page views
  • custom dimensions
  • send data via POST
  • browser features
    • cookie
    • res
    • browser plugins (pdf, flash, etc.)
  • User ID
  • Event Tracking
  • Campaign tracking
  • Search Tracking
  • Goal Tracking
  • Outlink Tracking
  • manual ping
  • manual DoNotTrack detection
  • sendBeacon
  • Performance Tracking

missing (yet)

  • non utf-8 pages
  • setCustomUrl
  • setReferrerUrl
  • HeartBeatTimer (automatic regular ping)

missing (???)

  • consent tracking, opt-in, opt-out (probably better to be implemented by the user)
  • Content Tracking
  • download tracking
  • setDomains
  • event queue (every tracking request is sent immediatly when it is tracked)1

missing (intentionally)

  • Support for Internet Explorer and other outdated browsers
  • everything using cookies (except possibly the opt-out cookie)
  • custom variables
  • Support for Matomo plugins
  • E-Commerce tracking

  1. This might create some issues if you run trackPageview() and trackEvent() at the same time as the requests might not reach Matomo in this order. ↩︎