If it truly is anonymous and there’s no PII or any persistent identifier (like a Machine ID) being collected, then GDPR doesn’t apply
Instead you end up with e.g. Microsoft's constant stream of "oops, we forgot to inform you of the data collection", "oops, we collected more data than intended", "oops, we sent it to our servers accidentally", "oops, it wasn't really anonymous" (e.g. because they simply hashed an ID to anonymize it), and so on.