Pinterest pinit按钮没有计数

时间:2013-02-27 11:01:17

标签: pinterest

我添加了一个pinit按钮,但它没有得到计数。

<a data-pin-config="beside" always-show-count="true" data-pin-do="buttonBookmark" href="//pinterest.com/pin/create/button/"><img src="//assets.pinterest.com/images/PinExt.png" /></a>
<script src="//assets.pinterest.com/js/pinit.js"></script>

enter image description here

1 个答案:

答案 0 :(得分:2)

我希望你是故意这样做的,但只是为了确定:

您的href=//pinterest.com/pin/create/button/链接缺少?url=http://your_url_here部分。 pinterest如何知道您要链接到哪个页面(并获取计数)?

查看此页面上的pinit生成器:http://business.pinterest.com/widget-builder/#do_pin_it_button

正确的版本看起来更像是这样:

<a data-pin-config="beside" 
  href="//pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.flickr.com%2Fphotos%2Fkentbrew%2F6851755809%2F&media=http%3A%2F%2Ft1.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcS6QBH2vJzx6BnYN_CACYuThsx4jL6MILcVHfFg6n-CX3CD5rq7ow&description=Next%20stop%3A%20Pinterest" 
  data-pin-do="buttonPin" >
    <img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" />
</a>

如果我遗漏了?url en?媒体变量我的pin'it!按钮不起作用:)。