Tension on shutted down gpio

For an analog input don't go any higher than a 10k resistor but it should work to protect it the same, if you go higher it will negatively affect how fast you can do an analog read, in the datasheet it says best with source impedance <10k ohms