I have some event tracking on a collapsible tree that tracks each time a user expands a tree:
jQuery('ul.child-pages div.hitarea').click(function() {
piwikTracker.trackGoal(1); // Track TreeView Clicks in Piwik when a user clicks on hitarea
});
I'm worried that this is costly on performance if I'm sending data to my server on each click. Is there a more efficient way to accomplish the same? Or am I paranoid and sending a small request to the server isn't that big of a deal (although Piwik is database driven so I'm actually writing somewhere in MySQL on every click).