I usually attach the cruise tag in the plastic carrier to my luggage before leaving the house. However, the airlines managed to rip the plastic part off (left the little metal wire hanging) on my last flight. I always carry duplicate copies of my boarding pass and luggage tags, so was able to re-attach another one.
If you are flying to the port, do you wait till you get there to attach the tag?