Vote Data (Patreon)
Content
One of the new features I got on my page is the ability to vote for images you think look nice, or prompts you've tried and think give good results. I save the data in two different ways, one is a JSON that just has pure vote data. Really just image name and and the amount of up-votes and down-votes.
But the data is also pushed to my InfluxDB where I can get a more comprehensive picture of what is going on.
So far, I got 5 different ways to display this data. Votes Per hours, which shows me a timeline of what's going on lately on the server. Total votes which is a summary of up- and down-votes over the last 24 hours. Top, and bottom ten images. And also the most active voters.
Now, you might wonder, how on earth do I track voters, especially since the page doesn't require you logging in.
It is quite simple, I do it badly. Whenever you first vote, an unique UUID is generated in a cookie, browser-side. Whenever you vote, this UUID is sent along and my server stores it alongside the image name and in which direction the vote went. It is completely anonymous, I can't reverse it in any way at all, so it is GDPR compliant.
Why am I doing this? Pfh, who knows. I'm a bit obsessed with data I suppose and giggle happily at graphs.
Files
Previews only