Any moderately fertile free-draining soil that doesn’t waterlog in winter. Once established, they are drought-tolerant but it’s always best to prevent them drying out completely because this could make them susceptible to diseases such as powdery or downy mildews.
In winter they will prefer a location that does not get waterlogged. Geraniums don’t enjoy being wet and cold.