I tried that with mine.....about 30 times. The snails kept dislodging it and knocking it off. I then tried Marine epoxy. The same effect. I finally re-arranged the rock so that it sat in a crevice and could not be knocked down. It has finally attached itself and is growing. No glue needed if nothing is going to knock it down.
Mike