More generally, what are the most important factors for getting a tenure-track job?
This anecdote suggests that number of publications and prestige of corresponding journals/conferences is not as important as people usually think:
The cynical interpretation of this anecdote is that the only thing that matters is whether A) you know someone and B) the committee happens to like your research topic. However in my experience what's more important is C) how high-quality the committee judges your research, together with it being on a promising topic. "Promising" is of course very subjective, and usually has something to do both with the topic being good science and its ability to get grants and yield interdisciplinary collaborations with others, including others in the department.
Unfortunately, people do get really downweighted for being in an area that doesn't mesh with the department or meet its needs. And those needs often aren't clear from the job ad.