DEV Community

Discussion on: Hello Treacker, a tracking library for React

Collapse
 
mati365 profile image
Mateusz Bagiński

Cool but why? Google Analytics has already super easy to use API, advanced dashboards

Collapse
 
jepser profile image
Jepser Bernardino

It's not excluding GA, it plays with it. Tracking libraries, like this one, helps you to create an abstraction of GA or Mixpanel, or NewRelic so your code doesn't depend on their specific API.

By using Treacker you can move the "event reporting" to a function that only knows when it's being called with certain signature. Also, let's say that you change from GA to MixPanel or Segment, then, with this, it will be easier because there are not implementation details on your code.