Can you guys suggest a way that I might more accurately track when a page on my site is shared on Facebook?
I currently have a button on each page to share on Facebook or Twitter, and when the user shares from one of those buttons I have an Ajax script to simply +1 in a MySQL database. But when the user just copy and pastes a link, I don't know of a way to track it.
I thought about putting something like this in my head:
<meta property="og:image" content="https://www.example.com/count.php?image=foo.jpg">
then use count.php to update the MySQL database. I'm not entirely sure if that would even work, but if so then of course it would count how many times the picture is actually shown instead of how many times it was shared... which has value of its own, I guess, but not quite the same thing.