Restore analytics code