Stand alone library for using matamo tracking in frontend projects
@jonkoops
organization on NPM (see migration guide).Since the municipality of Amsterdam no longer has any interest in maintaining these libraries they have been moved to a new organization. The packages have been renamed as follows:
@datapunt/matomo-tracker-js
:arrow_right: @jonkoops/matomo-tracker
@datapunt/matomo-tracker-react
:arrow_right: @jonkoops/matomo-tracker-react
To upgrade your project run the following commands:
npm uninstall @datapunt/matomo-tracker-js @datapunt/matomo-tracker-react
npm install @jonkoops/matomo-tracker @jonkoops/matomo-tracker-react
configurations
object<a>
child elements.removeEcommerceItem
and clearEcommerceCart
actionuseMatomo
are now memoized so they can be tracked as dependencies (for example in useEffect
)siteId
option in the MatomoTracker
constructor is now required.configurations
in the MatomoTracker.initialize
paramspushInstruction
method to pass instructions to Matomodisabled
flag to options to make all tracking calls no-opswindow.MatomoTracker
global