We have a situation where we want to track only certain links with Piwik. (Not entire page.)
We have done this so far by using piwikTracker.trackPageView(); on links with a certain class.
This method works for us, but every time the page is invoked piwik.php loads which causes unnecessary load on our web server. 95% of the time none of our links are clicked (we have an affiliate widget on another large site).
Is there any way we can run Piwik.getTracker(… only when a link is clicked? How do you verify that the tracker have loaded, and how do you make it safe in an asynchronous JS environment. Thanks for the input!