Hello!

The situation is this.

Installed share42.com sharing buttons

The client wants the fact that the articles are shared the user accrued internal currency to the account

But how to catch the event that the user eventually shared the article?

After all, he does this in a separately opened window of the selected social. network.

    1 answer 1

    If you just want to catch a click event, then just subscribe to this event.
    $(document).on('click', '#share42 a', function(e){ /** * Обрабатываем клик */ });
    And if you want to work out and click on the button in the opened window, then it will not work because of cross-domain security.

    • The fact of the matter is that the first click is not particularly interesting, because the visitor in the end may not complete the action in the social window that opens. Network The problem is just that) - AlexLee