added new analytics code