There's probably a bunch of "best ways" for this one Frank, but here's what I do.
I scrape away the paint down to the plastic in all the contact areas on the pilot, sand the contact area on the goggle or visor, and then glue with 5 minute epoxy. I've never had a problem yet.