format output and email link to Piwik