Google might add you to some anonymized dataset, but I doubt they would track you like that if you didn't opt-in. (Facebook, I wouldn't even trust that far.) But you have to opt-in to this to access certain Google services, so people might not realize how much location data Google is using. You can't just turn it on for certain apps, it's all or nothing.