That isn’t true at all. First, China allows collecting similar info about people as in the west, and all the Chinese internet companies do it probably more aggressively than their international counterparts. Second, google left china (search market) because the Chinese government was hacking gmail accounts to root out dissidents.