Open the exterior door and measure the width of opening with a tape measure. Transfer the width to a wooden tack strip using a pencil and cut it using tin snips.
Place the tack strip between the carpet and the door threshold, ensuring that the tacks face the door and not the carpet. Leave a ½-inch gap between the strip and the threshold. Hit the nails on top of the tack strip firmly with a hammer to sink them into the subfloor.
Pull the carpet over the tack strip as firmly as possible and press it down onto the tack strip to secure it. Wear heavy work gloves when performing this step.
Measure a square nose transition strip to the same width as the door and cut it down using a hacksaw. You may need a jigsaw to cut metal strips.
Apply an additional 1/4-inch bead of construction adhesive in the space between the tack strip and the threshold all the way across the door opening.
Turn the square nose transition strip so the flat side faces the threshold and press it into place on top of the adhesive. Place three bricks over the strip and leave them in place for one to two hours until the adhesive dries.