Maybe obvious but: it's not glue it's adhesive foam.
Doesn't happen often; was probably result of faulty application. Adhesives have "miraculous" properties these days; they heartily resist the elements and keep their stickyness "forever."
Take a picture now and then after replacement. Tell dealer you're going to compare the two and they better be the same.