Measuring Facebook Logins and Signups

Letting your users sign up and login with their Facebook accounts is extremely convenient. On the other hand, tracking these signups and logins accurately will require combining the Facebook JavaScript SDK with Kissmetrics API calls.

Check Login Status

As Facebook recommends in their Login Flow For Web guide, you can check two important things about the visitor:

There are two ways to do this:

  1. Subscribe to the auth.authResponseChange event
  2. Call the FB.getLoginStatus function

Either way, you can parse the response for the status of the visitor:

Status Corresponds to Kissmetrics Events

These three statuses correspond to what call to Kissmetrics you should make:

Code Example

We have not personally worked with the Facebook SDK, so we don’t have a working code example to provide. Please contribute below if you have recommendations!

Updated almost 2 years ago