Vizzuality / TRASE-frontend

Trase brings unprecedented transparency to commodity supply chains revealing new pathways towards achieving a deforestation-free economy.
http://trase.earth
MIT License
14 stars 2 forks source link

Analytics review #482

Closed tiagojsag closed 6 years ago

tiagojsag commented 6 years ago

Reviewed the GA tracking implementation

Full event reference: https://docs.google.com/spreadsheets/d/11Pufihk7VuxvvHWs5CxKNIklazEcKsu7lRPL50InFg0/edit#gid=0

nerik commented 6 years ago

DRYed the middleware code. Maybe not fix for now but worth raising a flag: this generates a lot of noise GA events. For instance, a context switch will generate two other events that are not meaningful:

{hitType: "event", eventCategory: "Sankey", eventAction: "Select contextual layers", eventLabel: "brazil_biomes"}
{hitType: "event", eventCategory: "Sankey", eventAction: "Update node selection", eventLabel: ""}
tiagojsag commented 6 years ago

yeah, there are also many actions generating calls to the "node selection" event. we'll have to take care of that at some point, but not the goal right now