Udating analytics code