If you put it on a barbed fitting, use clamps.

If you glue it, just make sure that it fits in snugly and that you hold it in place for 90 seconds or more. Otherwise it will 'ooch' out. Also, a small bit before depending on it. I've glued it, but formulations vary and you want to make sure the tube YOU get will glue OK.