Integrating analytics on React


(Sachin Singh) #1

Hello
I have a simple (possibly) question. Can I integrate the visualisations from Matomo within my own React webapp. If yes, then a high level pointer to points of integration would be greaty appreciated.

PS: Question is not about capturing analytics from React site but building a interactive dashboard using Matomo api and possibly svg, Canvas react-vis libs.

Regards
SS


(Lukas Winkler) #2

Hi,

You can either directly embed all Matomo widgets as iFrames or use the extensive reporting API to get the data of every report (e.g. as JSON) and create the visualization.

https://developer.matomo.org/api-reference/reporting-api