converted the Piwik analytics addon from ~f to red#