Implementing Third-Party Analytics

One of the features available in the Social Login JavaScript API is the ability to send data to third-party analytic sites such as Google Analytics and Adobe SiteCatalyst. An administrator can use these analytical tools to gain greater insight into how users interact with their 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 include:

  • 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.