Implementing Third-Party Analytics

One of the features available in the Janrain Social Login JavaScript API is the ability to send data to popular third-party analytics sites, such as Google Analytics and Adobe SiteCatalyst. An administrator can use these analytical tools to gain greater insight into how users interact with the website.

The JavaScript API fires events that you can track and report as needed. The API provides fine-grained data based on user actions. Some common events you might wish to track are:

  • onProviderLoginStart — Marks the successful initiation of a login.
  • onProviderLoginComplete — Marks the successful or unsuccessful completion of a login.
  • onProviderLoginSuccess — Marks the successful completion of a login.

Here is an example of implementing third-party analytics.

Note. If you want to implement third-party analytics for Registration, please see our documentation on Customizing Registration, as it utilizes a different JavaScript API.