Find a place for the pop-up emitter where water naturally collects. This should be at the lowest point where water collects and on a part of ground that slopes away from the house.
Dig a hole at the collection point large enough to accommodate a 9- to 12-inch catch basin, using a shovel. The catch basin has a grid on top that should be at ground level, and it has an outflow port that should be facing in the direction of the emitter.
Dig a trench wide enough to accommodate the pipe that connects the catch basin to the emitter. The pipe diameter depends on the amount of runoff you have to handle and the sizes of catch-basin and emitter you choose -- 3- and 4-inch PVC pipe are both appropriate.
Dig the trench so you have a consistent downward slope from the catch basin to the emitter. Running the pipe horizontally at some point is OK, but the pipe shouldn't slope away from the emitter, or water may back out of the catch basin. Use a 4-foot level to check the slope. The release point for the water should be at a minimum 10 feet from the house.
Assemble the pipe with PVC cement. Install a PVC elbow at the location of the emitter and glue the emitter to the elbow so it sits at ground level, then backfill the trench.