Online service providers that make access to services conditional on the processing of personal data cannot automatically assume that the processing of the data is necessary for the performance of a contract.
https://www.pinsentmasons.com/out-law/analysis/guidance-on-data-processing-issued-for-online-service-providers