Kryptonit3-zz/Counter

Not working properly when the user is browsing the laravel 5 application in private

Opened this issue · 1 comments

stoyo commented

First of all, great package. It is easy to use and it works like a charm.

However, I jut noticed that when I access a page from my web application in incognito mode the counter activates as if I am a new user. This happens every time. Are you planning on updating the package anytime soon in terms of handling this?

This issue has always been a tough spot for any developer that creates "tracking" software. This package relies heavily on a "forever" cookie. We fall back to IP address when a developer uses route caching and our package route hasn't been loaded.

https://github.com/Kryptonit3/Counter/blob/master/src/Counter.php#L153-L166

I am open to ideas on how to better implement a unique hit that doesn't rely as much on cookies.