Visit counter and greeter
this snippet counts how many times a visitor has visited your website and lets them know! this number is stored locally so no expensive servers or expensive hosts needed.
disclaimer: this piece of code uses local storage. local storage is cleared in incognito mode when the window is closed, so their browser won't save their visits. this does however, make it a good way to test how this code looks on your website. another problem could be that the visitor's website doesn't support local storage, so their browser won't save the number. in that case we use a generic greeting
here's the entire thing if you just want to copy it
put this whereever you want on your website
and then put this cody in the <body> tag (they both have to be in the same document)
and viola!! you have a little counter thingy.