Thread:User talk:DaSch/Piwik Integration

I've cleaned up your code and fixed some bugs. Please aprove my new edit (see my fork from Github!)