Debugged analytics code