universal tracking middleware