【问题标题】:Google Social Interaction Analytics with the Tumblr share button?谷歌社交互动分析与 Tumblr 分享按钮?
【发布时间】:2012-02-13 09:21:05
【问题描述】:

有人知道如何通过 Tumblr 分享按钮使用 Google 社交互动分析吗? (托管在我的 Wordpress 博客上)

我已经为 Facebook 和 Twitter 完成了它(即:http://visualise.ca/anne-au-cherry

谷歌文档中没有关于的信息:http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html

P.S.:Pinterest 按钮呢? ;-)

【问题讨论】:

    标签: javascript google-analytics tumblr google-analytics-api pinterest


    【解决方案1】:

    Tumblr 分享按钮没有任何完成分享的回调。但是,它只是指向另一个页面的链接。因此,您可以轻松地为其添加点击跟踪:

    $(".tumblr a").click(function(){
       _gaq.push(["_trackSocial", "Tumblr", "Click"]);
    });
    

    Pinterest Pin It 按钮位于 iframe 中,没有 JS API,没有点击跟踪,没有“on pin”回调。因此,就跟踪而言,您迷失了方向。

    【讨论】:

    • 感谢您的帮助!在 Pinterest 上使用相同的 Tumblr 方法不好吗?它也是一个链接。 pinterest.com/pin/create/button/?url=http://visualise.ca/…" class="pin-it-button" count-layout="horizo​​ntal">固定它
    • 那个JavaScript将链接转换成iframe,超出了你可以访问的范围。
    猜你喜欢
    • 2014-09-09
    • 2020-12-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-26
    • 2012-01-29
    • 1970-01-01
    • 1970-01-01
    • 2021-09-26
    相关资源
    最近更新 更多