how tracking works