Framework for gathering client analytics on iOS