Auth code integrated, but post metrics code is broken