React JS framework

Hello, we have a react js based web application for which we need to embed Matomo tags to capture the metrics. Please share details for the same.


This docs should help you:

The essential difference between SPAs and “normal” websites is that you have to manually call _paq.push(['trackPageView']); every time you want to track a new page view.

You could of course use react-piwik - npm or GitHub - joernroeder/piwik-react-router: Piwik analytics component for react-router, but I don’t know anything about them.

Thank you Lukas, sorry for the late response as I wasn’t notified about your response last week. We will keep you posted if we need any further info on this.