Analog button to control brightness?

I see in the documentation for WLED that I can use a potentiometer as an Analog Button to control brightness.

However I can’t find much in the way of examples or documentation on the topic.

Specifically what I’d like to know is how to wire it up and which pin to connect it to.

I’d think I connect the ends of a potentiometer to 3.3v and ground with the center tap going to the analog pin of the esp. However I don’t know what pin number to fill into wled as the analog pin of a D1 mini is ADC0 at A0 but there is also a G0.

All help is appreciated.

Pot ends to 3.3v and ground, center to an analog input.

All pin numbers in the UI are GPIO.