Visitor counter | Sololearn: Learn to code for FREE!

0

Visitor counter

I need a visitor counter for my website which save the number of visitors.

6/26/2019 7:47:07 AM

Barni Ilyes

3 Answers

New Answer

0

Hello! This forum is for people seeking help with code they have already written, you can't expect other people to do all the work for you because it isn't fair and you won't learn anything. Please show us the attempt you have made and we'd be happy to help.

0

Google Analytics? I think you need backend to store the number, or it can be done by only JavaScript if it only for display

0

create a persistent storage, you can create and save your own file in serverside or simply using database. once someone visit your web check if there is any cookie from your web, if there isnt then its a new visitor, update your visitor count and create a cookie fot that visitor.