I have a requirement where I need to capture the successful sharing event, once user click on the add this "facebook/twitter sharing" widget and shares the link.
I tried to achieve this by adding the below mentioned code in the advanced settings section of the tag configuration, inside the template config.:
addthis.addEventListener('addthis.menu.share', function(){
if (evt.type == 'addthis.menu.share') {
alert("test"); }
});
It's not working. Can anyone suggest how can we achieve this?
I even tried to create an extension of type"Javascript code" and bind that with the AddThis tag and put the same js code snippet inside the body but didn't work out.
... View more