When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
I probably would not glue it. Looks like it has 7+ years of good use, $40 is just the cost going forward imo. I would clean all connections and spray with wd40 prior to reassembly.
There should be a metal flat spring clip in each side of the connector that expands out and locks into position. You can go around behind the bumper with a light and screwdriver to check and ensure the clip is engaged.
I located the same part under several part numbers: C42JR $39.90 on etrailer is the same as 57020 $30.81 on Amazon, and the same as 49074 $39.99 at my local shop.