In the default settings, the "Publish game stats" in Dota2 is closed, you need to turn it on, then your game stats can be traced.
The step to publish game stats:
1. You need to open the Dota2 PC Client.
2. Click the [Settings] button.
After the selection, you have successfully completed the "Publish game stats".