added analytics to sample sample