-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only display unique hits in badge #61
Comments
@SimonLab Do you think you could take a look at this? |
@nelsonic Looking at this now Lines 24 to 30 in b60b329
I'm thinking of adding a |
@SimonLab good plan. The only thing to note is at present the Ecto |
We really want to streamline the query to do the |
I think the aggregate Ecto query is already using the
|
@SimonLab cool. thanks for confirming. 👍 |
Hey,
i'm wondering if it's possible to configure the badge to only show unique hits (over a day or specific period of time).
This option would give a more meaningful hint to repo owners that are having the "hits-badge" added to their readme files.
As I saw you already storing the hit data including a hash (consisting of user-agent, IP and timestamp) which in turn means you already know if a hit is unique or not - why not adding this option to the badge? :)
for instance something like
http://hits.dwyl.io/skrapeit/skrape.it.svg?uniquePerDay
would be handy.i think what bothers me the most is that every time you adjust your readme (and have the hit-badge included in the readme) IntelliJ's preview mode for md files will render the readme. This causes every keystroke to increment the hit count. Which leads to the issue that the hit-count is extremely falsified and no longer has any significance to the repo owner.
here is a screen record that describes the problem:
The text was updated successfully, but these errors were encountered: