Chances are slim that the zipper will match, and if that’s the case, you have to peel the top over the rear frame, and remove the upper zipper and staple the new one into place.
I fixed this issue on my last car. Remove the rear window ( like 12 bolts on the bottom, and the zipper up top.). The parts store will have a glue that’s rated for like 2100 psi. Lay the glass on a table, clean the area, tape the fabric to prevent it from getting glue on it. Then glue it back in place and apply pressure with a clamp and a stir stick if possible , let it sit over night. Remove the extra glue from the glass with a razor blade and install. Install will be easier if you pop the clamps for the top to give you a little slack, get it started but not tight, re clamp the top, and then tighten the bolts.
GOOD LUCK!