With regards to 2), there are specific exemptions in GDPR to allow this kind of data usage (specifically in 6(1)(f), this is the general interpretation of "legitimate interests", though the exact definition is up to member states' data protection agencies).