Carpet Glue
I never liked the idea of gluing carpet down, but that's because I'm often in my car updating and changing things. I can't think of a car I've worked on that ever had it glued down either. Most just rely on the various trim pieces to hold things in place and the general form of the carpet to kind of seat it.