As long as it is only done with the user's consent, and the analytics can be turned off by the user, I don't see a problem. But if it's forced and/or done without consent, then it's a problem no matter if you're Apple, Microsoft, Steam, Epic, or any other company.