In indirect speech the given sentence will be – She asked him which way she had gone.
When we convert the given statement, we have to remove the question mark. To remove it, in indirect speech we use the word ‘asked’. ‘Did she go’ becomes she had gone.