Analytics and ads do not fall under that though.
Inferences about your account - such as interests, age, and gender - which we use to provide features including:
Account suggestions
Advertising
Recommendations
Timeline ranking
Their legal basis for these is "legitimate interests".