Try adding something like this to template.js. A timer will start when the stats view is detected.
$(document).ready(function() {
if($('table.statisticssummary').length > 0) {
setTimeout(function () {
window.location.href = "http://example.com";
}, 5000);
}
});