The mess usually comes from mixing up LINE and LOAD. LINE is the incoming power, LOAD feeds any outlets further down the circuit. Get those swapped and the thing either won't reset or won't protect anything.
Rough order: breaker off, check the old outlet is dead with a tester, and note which wires went where before you undo anything. If there's only one cable in the box, it all goes on LINE and you leave the sticker over the LOAD screws. If there are two cables, separate them, carefully put the breaker back on and test which pair is live - that's your LINE - then off again before connecting.
GFCIs are a lot chunkier than a normal outlet, so fold the wires back neatly or it won't sit flat in a shallow box. If any of this feels off, an electrician will do it in twenty minutes.