Say it clearly. Keep it simple.
Temporal conjunctions order events. Nachdem often pairs Plusquamperfekt in the earlier past clause with Präteritum/Perfekt in the later event.
Spot the clue
Hatte gegessen is Plusquamperfekt and marks the earlier event.
Nachdem sie gegessen hatte, ging sie hinaus.
Aha! See the common trap
Try thisNachdem sie gegessen hatte, ging sie hinaus.
Do not reverse the sequence signalled by nachdem.
More examples, less guessing
Nachdem sie gegessen hatte, ging sie hinaus.After she had eaten, she went outside.