17

I need to unlock content when someone shares the post with pinterest, and I can't find a callback function on pinterest button. Is there any way to do this?

bkaid
  • 51,465
  • 22
  • 112
  • 128
Laura
  • 281
  • 2
  • 7

3 Answers3

1

You could wrap the pinterest link with a span and add a jQuery click event to the span to at least know that the pinit button was clicked. That's about the best you can do until they release a real callback so you can know that an item was actually pinned.

<span id="pin-container"><a data-pin-config="beside" href="http://pinterest.com/pin/create/button/?url=[your_url]&media=[your_image]&description=[your_desc]" data-pin-do="buttonPin" ><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /></a></span>

$('#pin-container').click(function () {
        alert('clicked pin button');
    });
Don Fitz
  • 1,144
  • 17
  • 32
0

As said before, the API is not public yet. The best workaround (I just tested it, and it works in my scenario) that I've found so far is http://www.seomoves.org/blog/tools/tracking-pins-with-the-pinterest-button-2595/

That link only lets you determine if the Pin Button was clicked, not if they actually made the share. Hope that helps a little!

Owen McAlack
  • 399
  • 10
  • 28
0

A workaround is posted here:

http://www.lunametrics.com/blog/2012/03/12/tracking-pinterest-event-tracking/

Until Pinterest opens up a public API and a non-iFrame tracking button, this is about as good as you'll get.

vjm
  • 33
  • 2