Somewhat important I guess? I only ever care because it can sometimes show if something will get a sequel, but some anime take TV ratings, merchandise, etc more into account as others have said.
If I like a show, I like it, but I can dislike a show that sells well. Though, sometimes it does feel like my tastes are more like Japan than western fans.