Thanks for the reply and sorry for my late reply

I finally had some time to try that and your first solution indeed worked, but the problem was that because the group tracker is a parent of the tracking data, when I rotated the avatar, tracking data from other input source also rotate, which overall the result was the same.
Though, I found a solution which I rotated the torso of the avatar to my desired direction and it worked greatly!
For the second part, I tried that code, but the following error message is shown.
** WARNING: Could not find subchild with name: 'male_head.crfx'
Is the name you provided correct?
Thanks in advance!