A quick look at the JavaRanch JForum codebase shows that the src/main/webapp/templates/default/bottom.htm file has the Google Analytics tracking pixel in it, but that's it. If Piwik -which has less features than GA- is similar, then adding the pixel to that file might be all that's required.