All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Add campaign option to trackEvent
Merge signed out user with signed in user
Pass more params to Matomo Tracking HTTP API
- see https://developer.matomo.org/api-reference/tracking-api#optional-user-info for possible params
- BREAKING updated four methods to receive a params object while adding optional user info to every method
trackAppStart()
->trackAppStart({ userInfo = {} } = {})
trackScreenView(name)
->trackScreenView({ name, userInfo = {} })
trackLink(link)
->trackLink({ link, userInfo = {} })
trackDownload(download)
->trackDownload({ download, userInfo = {} })
- added
send_image: 0
- If set to 0 (send_image=0) Matomo will respond with a HTTP 204 response code instead of a GIF image - added
'Accept-Language': lang
- This value is used to detect the visitor's country
Memoize useMatomo
hook
- added
useMemo
to the returned hook object
Provide MatomoContext
- export
MatomoContext
as well
Optimize error handling
- added error handling with returning the error instead of
console.error
to let the parent app handle errors individually
Update readme
- corrected import advices
First version to use Matomo tracking
- created
MatomoTracker
class,MatomoProvider
context anduseMatomo
hook to provide functionality for tracking with a Matomo instance
First npm publish
Initial repository setup with readmes and issue templates