Added analytics to sample app