Reputation: 51
I've been trying for a while build some method to share information from my web page via the Whatsapp application.
I actually found an easy method to do it using this code:
<a href="https://web.whatsapp.com/send?text=textToshare" target="_blank">Share via Whatsapp</a>
And it works great, but i still don't find how to know if the user really shared the information, or just got back to the web page.
Is there a way to make this work?
Thanks.
Upvotes: 0
Views: 1006
Reputation: 1177
It doesn't seem like you can. What's app doesn't seem to have an API much less analytics or webhooks.
The only way you could potentially do this would be to have it launch an iframe and inject javascript to track their interactions. This won't work because of cross domain security measures (think of the nasty things you could do if you weren't well intentioned). The iframe would need to be on the same domain as yours.
Upvotes: 1