Added new analytics code