I didn’t know what had taken me there.
Although there's a difference of perspective between take and bring I'd paraphrase it as:
I didn’t know what had brought me there.
See usage note of bring, which says:
Bring indicates motion toward the place from which the action is regarded—typically toward the speaker—while take indicates motion away from the place from which the action is regarded—typically away from the speaker. Thus from a customer's perspective, the customer takes checks to the bank and brings home cash, while from the banker's perspective the customer brings checks to the bank in order to take away cash. When the point of reference is not the place of speaking itself, either verb is possible, but the correct choice still depends on the desired perspective.