Like按钮上的fb_ref参数如何实际工作? [英] How does the fb_ref parameter on a Like button actually work?

查看:183
本文介绍了Like按钮上的fb_ref参数如何实际工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图追踪Facebook页面的喜好。来自Facebook的文件说:

Trying to track sources of Likes to a Facebook Page. Docs from Facebook say:


ref - 用于跟踪转介的标签;必须小于50个字符,并且可以包含
字母数字字符和一些标点符号(当前为+ / = - 。:_)。 ref属性导致
当用户从流故事
中点击一个Like操作的链接时,将两个参数添加到引荐来源网址:
fb_ref - ref参数
fb_source - 点击
发生的流类型('home','profile','search','other')和与下划线连接的故事类型('oneline'或'multiline')。 / p>

ref - a label for tracking referrals; must be less than 50 characters and can contain alphanumeric characters and some punctuation (currently +/=-.:_). The ref attribute causes two parameters to be added to the referrer URL when a user clicks a link from a stream story about a Like action: fb_ref - the ref parameter fb_source - the stream type ('home', 'profile', 'search', 'other') in which the click occurred and the story type ('oneline' or 'multiline'), concatenated with an underscore.

但是,如果您发送喜欢的Facebook页面 - 而不是外部网站 - 你可以从哪里获得这个fb_ref数据?显示在数据分析中不可用,而且您无法将Google Analytics(分析)置于墙上。

But if you are sending Likes to a Facebook Page - NOT an external website - where can you get this fb_ref data? Appears that it's not available in Insights, and you can't put Google Analytics on a Wall, obviously.

这里有什么见解?

推荐答案

我的理解是你会使用如下:

My understanding is that you would use it as follows:


  1. Jim已登录到您的网站。

  1. Jim is logged into your site.

将FB按钮放在网站的页面上。您正在动态生成页面,以便您可以动态生成FB按钮。自从吉姆登录后,您可以在FB Like按钮中添加Jim作为参考。

Put a FB like button on a page on your web site. You're generating the page dynamically so you can generate the FB like button dynamically too. Since "Jim" is logged in, you can include "Jim" as the ref in the FB Like button.

Jim是FB用户, ,并按下Like按钮(包括Jim ref)。

Jim, an FB user, LIKES the page, and presses the Like button (that includes the Jim ref).

您的网页的链接会显示在Jim的FB页面上,他的所有朋友都会看到它。

A link to your web page appears on Jim's FB page and all of his friends see it.

Jim的FB朋友Susan在Jim的墙上看到关于你的网站的Like(它出现在她的新闻源中)。激动的链接,她按下它。

Susan, a FB friend of Jim, sees the "Like" about your website on Jim's wall (it appears in her newsfeed.) Excited about the link, she presses it.

您的网站收到了Susan浏览器的传入GET请求。它包括ref = Jim。它还包括fb_source =个人资料这将告诉您的页面关于请求者。

Your website receives an incoming GET request from Susan's browser. It includes the ref=Jim. It also includes the fb_source="profile" This tells your page about the requestor.

您的网站现在显示页面到苏珊。该页面(动态)包括问候感谢您成为吉姆的朋友!请注意,您不知道请求者是Susan,您只知道请求者通过Jim的页面发现了该页面。为了找出这个人是苏珊,你需要让她登录/注册你的网站。

Your website now displays the page to Susan. The page (dynamically) includes the greeting "Thanks for being a friend of Jim!" etc. Note, you don't know the requestor is Susan, you only know that the requestor found out about the page via Jim's Like of the page. In order to find out that the person is Susan, you need to get her to signin/signup for your website.

额外获取参数的文档:请参阅 ref的描述 param 这里

Docs for the extra Get params: see the description of the ref param here

添加
Re:但是您正在向Facebook页面发送喜欢 - 不是外部网站 - 您可以在哪里获取此fb_ref数据?显示在数据分析中不可用,您无法将Google Analytics(分析)置于墙上,显然是。

为Facebook上不是FB应用程序的页面重新创建一个Like按钮? AFAIK你是对的,你看不到参考资料。参考数据可用于类似的目标。

Do you mean that you're creating a Like button for a page on Facebook that is not a FB app? AFAIK you're right, you can't see the ref data. The ref data is made available to the target of the Like.

您可以创建一个简单的网页页面,重新指向FB页面。然后,您可以在重新指向FB页面之前收集参考信息。您简单的重新直接页面将是喜欢的目标。但是你必须伪造FB的图形标签 - 他们知道该页面的规范网址是fb.com/xyz。可能无法直接到your_site.com/fb/xyz。

You could create a simple website page that re-directs to the FB page. You'd then collect ref info before re-directing to the FB page. Your simple re-direct page would be the target of the Like. But you'd have to fake out FB's graph tags--they'd know that the canonical url for the page was fb.com/xyz. May not be possible to direct to your_site.com/fb/xyz.

这篇关于Like按钮上的fb_ref参数如何实际工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆