new analytics code