Sediment trap location w/ gas flex line

Here’s how Bradford White says to do it. If in doubt (and you think it really matters which side of the appliance connector it’s on) research the specific water heater you are working with or check with your AHJ for local requirements.