https://github.com/findus23/matomolitetracker
An experimental, much smaller alternative to matomo.js
https://github.com/findus23/matomolitetracker
Last synced: 11 months ago
JSON representation
An experimental, much smaller alternative to matomo.js
- Host: GitHub
- URL: https://github.com/findus23/matomolitetracker
- Owner: Findus23
- License: bsd-3-clause
- Created: 2022-04-25T18:37:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T22:26:47.000Z (about 3 years ago)
- Last Synced: 2025-03-17T12:47:36.091Z (about 1 year ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.