Stats non primary

Added code to track stats from non primary routes @rcrichton please review