I want to use unique visitor counter on my website. My site usually has 5000 visits per day. It's better to use a database or a text file in my site's directory. There was no Google Analytics service in my country. Thankful
Go with database instead of text file, text file may slow for large data.
Also you can easily handle unique visitors count on day basis.