跟踪Facebook“Like”介绍人 [英] Tracking Facebook "Like" Referrals
问题描述
与独立网站追踪Facebook喜欢无关。我专门寻找Facebook API是否支持通过喜欢跟踪推荐。例如,我有一个汽车修理/维护客户端。他们希望在欢迎登陆页面上添加促销活动,允许用户将他们的朋友引用到喜欢公司页面。一旦有人提及了10+喜欢,那么公司就会向引荐人提供免费的换油或其他东西。任何想法或想法在这里?我找不到本地应用程序,但也许我没有足够好的搜索。
This is not related to tracking Facebook "Likes" from an independent website. I am specifically looking to find if the Facebook API supports tracking of referrals via Likes. For example, I have an auto repair/maintenance client. They want to add a promo to their Welcome landing page that allows users to refer their friends to "Like" the company page. Once someone has referred 10+ "Like"'s, the company will then offer the referrer a free oil change or something. Any thoughts or idea here? I could not find a native App, but maybe I was not searching well enough.
推荐答案
我不知道我是否正确理解你的问题,但让我试试:
你有一个网站 http://client.com/
它有一个推荐系统,例如用户 A (其中 id = 1234
)将具有推荐网址: http://client.com/landing_page.php?ref_id=1234
I'm not sure if I understood your question correctly, but let me try:
You have a website http://client.com/
which has a referral system, for example user A (which id = 1234
) will have a referral URL:http://client.com/landing_page.php?ref_id=1234
在这个页面上,你有一个像Facebook的按钮。如果某个喜欢公司的页面来自这个URL,你需要捕获?
And on this page, you have a Facebook like button. You need to "capture" if a certain likes to the Company page came from this URL?
好的,Facebook提供一个事件来跟踪用户何时喜欢某事。这被称为 edge.create
从那里你可以增加用户推荐。
Okay, Facebook provides an event to track when a user "likes" something. It's called edge.create
from there you can increment the user referrals.
例如在页面上( landing_page.php
) http://客户端。 com / landing_page.php?ref_id = 1234
你会有以下的东西:
For example on the page (landing_page.php
) http://client.com/landing_page.php?ref_id=1234
you'll have something like:
FB.Event.subscribe('edge.create', function(response) {
$.ajax({
type: 'POST',
url:'/referral_manager.php',
data: {ref_id: <?php echo $ref_id_or_user_id; ?>}
});
});
其中 $ ref_id_or_user_id
可以从处理页面时的URL。
Where $ref_id_or_user_id
can be taken from the URL when processing the page.
现在在 referral_manager.php
上,您可以检查是否达到一定的金额以发送用户优惠券(礼品)。
Now on the referral_manager.php
you do your checking if a certain amount is reached to send a user a coupon (gift).
重要提示:
这里一个非常重要和至关重要的一点是设置打开图表元标记到所有页面中的相同数据,不这样做... Facebook会将这些页面视为不同的页面!例如所有推荐网址( http://client.com/landing_page.php?ref_id=xxxx
...等)应该具有:
IMPORTANT NOTE:
One very important and crucial point here is to set the Open Graph Meta Tags to the same data in all the pages, not doing so...Facebook will treat these pages as different pages! For example all referral URLs (http://client.com/landing_page.php?ref_id=xxxx
...etc) should have:
<meta property="og:title" content="Same Title" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://client.com/" />
<meta property="og:image" content="http://client.com/img/logo_to_share.jpg" />
<meta property="og:site_name" content="Client Name" />
<meta property="fb:admins" content="XXXXXXX" />
这篇关于跟踪Facebook“Like”介绍人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!