Piwik: Tracking Search Suggestions

So, this is slightly different. I’m wanting to take advantage of the site search tracking provided by Piwik. It does a decent job out of the box once I configured it to detect the “text=” string part of the query. However, this only logs searches returned from a “full search”, and I’ve noticed that lots of people click on the results generated by the search suggest feature but this isn’t being logged.

To solve this I believe I need to use the trackSiteSearch function somehow in the call to SuggestSolrService.

Maybe an onmouseclick event like this but using the trackSiteSearch function. As you can probably tell, I don’t really understand asynchronous requests, etc.