DEV Community 👩‍💻👨‍💻


Posted on

Embedded visit counter doesn't work here. Any Idea why?

Testing if this works...

Got a visit counter from .


I embedded it as an image. But is caching images through a proxy, so the image URL is not being hit.

it's always 1

Any idea whats happening?

Top comments (2)

tobiassn profile image
Tobias SN

The way most stat counters like that work is that they count the amount of times the specific path is being requested. Since caches images, when someone visits the post, its CDN gets the request, not the original place the image is from. So basically, to the stat counter, almost nobody has visited your post. The one time the path was requested was when was getting the “image” for caching.

justhere profile image

Yeah, I was wondering why no one ever used it.


🏗 We built a 100% open source community software called Forem.

You can contribute to the codebase or host your own.