@not2b They do give up copyright yes, but part of the publishing agreement usually allows authors to deposit an unbranded version in a university repository, which is then indexed by places like Google Scholar. (Often there's an embargo of a year or two because publishers are jerks, but it's still worth doing for the sake of the people who still want to read it after that time's up.)
I highly encourage all authors to check in with their uni library about this option.