All Bitcoin transactions and balances are publicly available on the Bitcoin blockchain.
The mining pool or a mining software through which you mine Bitcoin and other cryptocurrencies may track your activity or not.
However, once you withdraw your earnings to a crypto wallet, the transaction from the mining pool to your wallet address can be traced.
Bitcoin and most crypto wallet addresses use pseudo-addresses, so your identity isn’t publicly available.
While everyone can see on the blockchain how much your address holds, and who sent which amount to your address, they can’t see your real identity.
At least not if you don’t publicly share your wallet address, thus connecting it to your real name and other data.
If you want to withdraw FIAT money(USD, EUR, etc), most exchanges and banks do ask for your identity if you decide to use them to convert your crypto earnings.
On the other hand, if you just use your mined crypto to pay for goods and services where crypto is accepted, you don’t necessarily need to disclose your real identity.