Fix piwik tracking. Closes #2845.