Can government agencies trace if I mine bitcoin? I live in a country where the government has strict rules against using bitcoin. in fact, they are trying to find out the citizens who are related to bitcoin. I was just wondering if they can catch me if I just mine bitcoin without doing any transaction? if yes then I wanted to know if there are any alternatives which can make me untraceable.
Data linking is the only way there is any question of privacy. When you transact with Bitcoin, the goods or service you order will need to have a delivery address. Also, if you send your BTC to any merchant, service or, an exchange that has your personal data there will be a presumption that the sender was the owner of the inputs used and is the person that they have records for. There is no known way around this.

Apart from that question which exists for all cryptocurrencies, you may wish to consider implementing some of the configuration for privacy from here for your mining setup. Sound advice is, do not break the law.