Both are important but the general belief is that Google's algorythem sways towards off page optimisation.