{"repo":"Arnaud73/ngx-matomo","free":true,"listed":false,"github":"https://github.com/Arnaud73/ngx-matomo","clone":"git clone https://github.com/Arnaud73/ngx-matomo.git","description":"Matomo (aka. Piwik) web analytics for Angular applications","language":"TypeScript","stars":102,"topics":["matomo","ngx-matomo","tracker","angular","piwik","web-analytics"],"license":"MIT","category":"analytics","readme_excerpt":"ngx-Matomo Wrapper for Matomo (aka. Piwik) analytics tracker for Angular applications. Choose the version corresponding to your Angular version: Angular ngx-matomo --------- ------------- 16 2.x 14 and 15 1.x 13 not available 9 to 12 1.0.0-rc1 5 to 8 0.x Installation Use npm or yarn to add the module to your current project: or Using ngxMatomo Injecting the tracker In order to add Matomo capabilities to your application, you need to import MatomoModule into your root NgModule . If you are using an old version of Matomo (3.x or less), please add scriptVersion with the version number (2, 3, 4…) to the configuration object passed the the MatomoModule.forRoot() function. This will activate some features present in Matomo 3 that were deprecated in Matomo 4. Customizing tracking Once that's done you can import MatomoTracker into any component of your application. Then, let's find an action you would like to track: Just add the MatomoTracker to your component and use the trackEvent function. Test driving ngxMatomo A demo application is available in order to get you quickly up to speed. 1. Clone the ngxMatomo repository: git clone https://github.com/Arnaud73/ngx-matomo.git 2. cd into the repository 3. Run the demo application: npm run demo Migrating from earlier versions (0.x) ngxMatomo 1.0 is a major evolution from previous versions. If you plan migrating from a previous release, follow the next steps: - Remove any Matomo injection script in your index.html if you chose to inject th","default_branch":null,"files":null,"tree":[],"storefront":"/r/Arnaud73","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Arnaud73/ngx-matomo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}