简体   繁体   English

如何判断用户是否点击了“不允许”<fb:login-button> 发起对话?</fb:login-button>

[英]How can I tell if a user clicked “Don't allow” on a <fb:login-button> initiated dialog?

I have a FB login button on my site.我的网站上有一个 FB 登录按钮。 I'd like to analyze how many people click the button, but do not proceed with the login process (ie close the dialog, or click "Don't Allow").我想分析有多少人单击了按钮,但不继续登录过程(即关闭对话框,或单击“不允许”)。

Any ideas?有任何想法吗?

You cannot.你不能。 Fb doesn't provide any callback for that. Fb 没有为此提供任何回调。

I figured another way to solve this, though not so perfect.我想出了另一种方法来解决这个问题,虽然不是那么完美。 I can add an onClick to the fb:login-button tag and track event using Google Analytics.我可以将 onClick 添加到 fb:login-button 标签并使用 Google Analytics 跟踪事件。 This tracks the event and doesn't interfere with Facebook login process.这会跟踪事件并且不会干扰 Facebook 登录过程。 While it doesn't give an accurate answer to the question how many people clicked "Don't Allow", it does show how many people clicked the button which is a good start.虽然它没有准确回答有多少人点击了“不允许”这个问题,但它确实显示了有多少人点击了这个按钮,这是一个好的开始。 If they didn't ended up signing up, its enough for me to consider them as those who click "Don't Allow".如果他们最终没有注册,我就足以将他们视为单击“不允许”的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM