直接在粉丝页面上跟踪 Facebook 点赞转化

发布于 2024-12-03 19:17:22 字数 192 浏览 0 评论 0 原文

有没有办法放置一个跟踪像素来判断用户在粉丝页面(而不是外部网站)上喜欢粉丝页面时是否转换为粉丝?

在这种情况下,他们将被直接定向到粉丝页面,如果他们点击“喜欢”按钮,我们就可以将其视为转化。有人提到旧的静态 FBML 应用程序您可能可以做到这一点,但现在这个功能已经消失了。我们正在寻找最简单的解决方案,但如果需要的话可以深入技术。

谢谢

is there a way to place a tracking pixel to tell if a user converted to a fan when the like the fan page when they are on the fan page (not on an external site)?

In this situation they would be directed directly to a fan page where if they clicked the like button we would could this as a conversion. Someone mentioned with the old Static FBML app you may be able to do this but now this if gone. We're looking for the easiest solution but can go as deeply technical if needed.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

水中月 2024-12-10 19:17:22

您可以订阅 edge.create 以查看他们是否单击了 XFBML Like 按钮,或者您可以解析签名的请求以查看他们是否已经喜欢该页面。

但这些都无法衡量您想要的东西。

如果您需要跟踪选项卡 iFrame 外部“赞”按钮的转化,则必须执行以下操作:

  1. 解析签名请求以查看当前用户是否喜欢当前页面。
  2. 如果没有,请设置一个名为 impression 之类的 cookie。
  3. 如果有,请检查 cookie。如果 cookie 存在,那么您就完成了转换。
  4. 不要忘记删除 cookie,否则每次返回时您都会注册一次转换。

此处签名的请求文档

https://developers.facebook.com/docs/authentication/signed_request/

$signed_request['page']['liked'] 是感兴趣的值。

You can subscribe to edge.create to see if they clicked an XFBML Like button, or you can parse the signed request to see if they've already liked the page.

Neither of these measure what you want though.

If you need to track conversions from the Like button outside your tab's iFrame, you'll have to do the following:

  1. Parse the signed request to see if the current user likes the current page.
  2. If they don't, set a cookie called impression or something.
  3. If they do, check for the cookie. If the cookie is there, you've got a conversion.
  4. Don't forget to delete the cookie, or you'll register a conversion every time they return.

Signed request docs here

https://developers.facebook.com/docs/authentication/signed_request/

$signed_request['page']['liked'] is the value of interest.

从﹋此江山别 2024-12-10 19:17:22

您可以使用 Event.subscribe 来单击“赞”按钮:

FB.Event.subscribe('edge.create', function(href) {
    // Do something, e.g. track the click on the "Like" button here
    alert('You just liked ' + href);
});

每次用户单击“赞”按钮时都会执行该函数。

在回调函数中,您将获得“点赞”按钮的 href,如果需要,您可以检查以确保这是正确的“点赞”按钮。

您还可以使用:edge.remove 取消喜欢该页面。

这是官方 FB 文档: http://developers.facebook.com /docs/reference/javascript/FB.Event.subscribe/

You can use an Event.subscribe for clicking the like button:

FB.Event.subscribe('edge.create', function(href) {
    // Do something, e.g. track the click on the "Like" button here
    alert('You just liked ' + href);
});

The function will be executed every time the user clicks a Like button.

In the callback function you will have the href of the like button and if neccery you can check to make sure that is the right like button.

You can use also: edge.remove for unliking the page.

Here is the official FB documentation: http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

鲸落 2024-12-10 19:17:22

您可以通过检查签名请求“页面”属性来判断某人是否是选项卡应用程序中页面的粉丝。有关签名请求的详细信息,请参见:https://developers.facebook.com/docs/authentication/signed_request /
人们可能已经提到过,FBML 中也提供了此功能。

澄清一下,您如何将用户发送到粉丝页面?如果您通过 Facebook 广告将他们发送到页面,那么广告洞察将为您提供有关点击页面广告的用户最终喜欢该页面的信息。

You can tell if someone is a fan of the page in a Tab app by inspecting the Signed Request "page" property. Details on the signed request here: https://developers.facebook.com/docs/authentication/signed_request/
This was also available in FBML which people may have been referring to.

Just to clarify, how are you sending the user to the Fan page? If you are sending them to the page via a Facebook ad then the Ad insights will give you information on how many users who clicked on the Page ad ended up liking the page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文