For self-hosted analytics, you will want a VPS with decent RAM (analytics tools like Matomo/Plausible can be resource-hungry as data grows)
4GB+ RAM and SSD/NVMe storage is a good starting point.
Just confirm daily backups and DDoS protection are included in whatever plan you pick, not just offered as paid extras.
Some providers only bundle those into higher tiers.