Ananás is correct [0], but so is piña [1]. Piña, in its second meaning is synonymous to ananás.
Now, regarding usage, you're completely right. Nobody uses ananás; everybody says piña.
(Funny: When describing the ananás plant, the DRAE says about its fruit: "fruto grande en forma de piña".)