I haven’t used Piwik myself, but you could just add the tracking code by going to admin > customize > CSS/HTML >
Add the tracking code in there and it should work. It looks like piwik uses a tracking code similar to GA so don’t see why that shouldn’t work.