MinisterioPublicoRJ / inloco

A Geographic Information System (GIS) used by Ministério Público do Estado do Rio de Janeiro to show social, institutional and administrative data , based on React and Leaflet, interacting with a GeoServer back-end.
MIT License
11 stars 1 forks source link

Make google analytics track events #335

Open rlage opened 6 years ago

rlage commented 6 years ago

Google analytics should track user events, for instance:

The ideia is to gather data regarding user experience, most used features, layers, and so on.

gabidavila commented 6 years ago

So the way I saw this is possible to be done is using HOC, that the react-ga package actually didn't work as well. I am gonna try to tackle this. I saw this thread and I solved it partially in my project doing the HOC.

https://github.com/react-ga/react-ga/issues/122