How can I create a segment for anonymous

Do you have the cron set up? You will need to add the mautic:segement:update to cron: https://www.mautic.org/docs/en/setup/cron_jobs.html