Google closed a deal to buy fitness tracker maker Fitbit for $2.1 billion. Fitbit devices are used by more than 28 million users around the world.