Events API and Pinterest button

nana Jul 11, 2012 09:12AM EDT

Hi,
I'm using your Events API to track share clicks.
Seems to work perfect for all the buttons except Pinterest, click on which doesn't fire an event.
Here's the code:
<html>
<body>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
<script type="text/javascript">
var addthis_config = {
data_track_clickback: false
}
var addthis_share =
{
url_transforms : {
add: {
param1: "1",
param2: "2"
}
}
}

function shareEventHandler(evt) {
if (evt.type == 'addthis.menu.share') {
alert(evt.data.service);

}
}

// Listen for the share event
addthis.addEventListener('addthis.menu.share' , shareEventHandler);
</script>

<div class="addthis_toolbox addthis_default_style" >
<a class="addthis_button_facebook"></a>
<a class="addthis_button_pinterest_pinit"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_compact"></a>
</div>
</p>
<a><img id="nana" src="http://www.digitallakeway.com/images/imgs/800flowers.jpg"/> </a>
</body>
</html>

Up 2 Rated Down
Paul (AddThis Happiness Specialist) Jul 12, 2012 10:08AM EDT
The Pinterest Pin It button doesn't fire the share event until after the user selects an image to share.
Up 0 Rated Down
nana Jul 12, 2012 10:50AM EDT
thanks for the quick response
i added another image to my test page and now it works
but as long as there is only 1 image on the page, it is shared automatically and then there is no event fired.
Up 1 Rated Down
Paul (AddThis Happiness Specialist) Jul 16, 2012 02:46PM EDT
I'll let our developers know so we can get that fix implemented.

This question is closed to new answers.

Still need help?


General Topics

 

Developers