Closed tiagojsag closed 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: ""}
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
Reviewed the GA tracking implementation
Full event reference: https://docs.google.com/spreadsheets/d/11Pufihk7VuxvvHWs5CxKNIklazEcKsu7lRPL50InFg0/edit#gid=0