I am designing an Ecommerce website in PHP, on product page there is Twitter and LinkedIn share button, if user shares that product page than he will get $5 discount. Now my query is how can I detect if that product/page successfully shared on Twitter or LinkedIn, so I can apply that discount. Is there any response Twitter or LinkedIn return if url shared successfully.
This question is quite old, so for people who stumble upon it in the future:
From November 20, 2015, Twitter changed the behavior of the 'tweet' event so that it is no longer possible to track actual tweets. An alternative could be the OAuth API.
Twitter intent's 'tweet' event callback triggering on 'click' instead of 'tweet'