Gorilla glue (Home Depot also carries it but you may even find it in your grocery store) is the best I have used but you will never get it off the glass. Epoxy putty (I like this one best because it keeps the purple color until it is covered over but a much cheaper brand without color would suit your needs) is aquarium safe and is more likely to be removable with a razor should you want to do something different or something breaks and has to be replaced. Both break down somewhat over time (years) but are still the best I know are safe to use and have had success with.