If you aren’t paying for a product, then you’re the product being sold. The website How Do They Make Money? examines a number of tech companies providing "free" services, telling you how they profit by tracking you.
For example: Dropbox profits by offering a premium service, while Facebook and Twitter profit solely through advertising. It’s an interesting look at how tech services make money and which rely on advertising most heavily.