I personally do not use Piwik. I have developed a JavaScript tool/library for creating a menu system in SharePoint and someone who uses my library was asking about incorporating Piwik.
From what I have read I can see that Piwik catches/tracks click events. I suspect it does that by default for tags that have a href attribute.
My JS library creates So I wanted to see how exactly Piwik tracks click events so I can figure out how I can incorporate it in a more general way. I thought maybe I could make my onclick event fake something by creating an element and executing it’s click event but wasn’t sure if that would work.