我想得到一些关于今天(11/30/12)追踪pind事件的最佳方法的意见。这是我的理解pinterest正在研究一个API,希望有真正的回调方法,如FB或Twitter做它的按钮来绑定到谷歌分析。但截至目前,我们必须尽最大努力。谷歌分析和pinterest事件跟踪
目前我在包裹一个div我Pinterest的链接,这样pinit.js后做它的东西,并创建实际的按钮,在HTML看起来像这样:
<div class="pin">
<a href="http://pinterest.com/pin/create/button/?url=mySite.com/path/to/content&description=yeah&media=yougetthepoint">
<span class="PIN_1354295239838_hidden" id="PIN_1354295239838_pin_count_0"></span>
</a>
</div>
我的想法是使用jQuery中添加销div
的径赛项目,像这样
$(document).ready(function() {
$('div.pin').click(function() {
_gaq.push(['_trackEvent', 'Pinterest Pins', 'Article Pin', $(location).attr('href')]);
});
});
我知道这并不100%知道用户实际经历与钉扎过程,但我真的不知道还有什么比等待做更好的api?
这听起来好像是一种很好的方式来做现在的事情来获得一些事件跟踪在ga?还是有人提出一些更好的解决方案的建议或提示?
你应该使用'_trackSocial'来代替。 – Eduardo