In my website each post has a download button for a certain asset. I want to be able to sort my posts by how many times an asset has been downloaded (or, in other words, how many times the download button has been clicked).
I figure I should keep a variable that goes up every time someone clicks the download button, and store that number as a metadata value to use in the sorting function later on. Is this the right way to approach this? Will it overload my hosting if a lot of users click the download button?
So, in short, what is the best way to keep track of how many times the download button was clicked on every post?
Thank you in advance!
Read more here:: Sort posts by clicks on download button