Revert analytics code