Start a conversation

JS Library

JS Library documentation for logging your product usage in CustomerSuccessBox

  • Feature Function

    analytics.feature (FeatureID, ModuleID, ProductID) Important: Before calling this function, it is mandatory to use the Login function to set the User and Account details for the account which the Prod...

  • Module Function

    analytics.module (ModuleId, Traits) This function call is used to update or add new details of the Module. You can also log optional custom parameters(traits) during the session as well. If you have n...

  • Product Function

    analytics.product (ProductId, Traits) This function call is used to update or add new details of the Product. You can also log optional custom parameters(traits) during the session as well. If you hav...

  • Account Function

    analytics.account (AccountId, Traits) This function call is used to update or add new details of the Account. You can also log optional custom parameters(traits) during the session as well. If you hav...

  • User Identify Function

    analytics.identify (UserId, Traits) This function call is used to update or add new details of the User. You can also log optional custom parameters(traits) during the session as well. If you have no ...

  • Logout Function

    analytics.logout () This function call is used to logout the current logged in user. analytics.logout();...

  • Login Function

    analytics.login(#UserID, #AccountID) This function call is used to log all users logins. analytics.login(<#UserID>, <#AccountID>); Example: analytics.login(unique_id_or_email, unique_account_or_domain...

  • Authentication

    1. analytics.factory (#APIKey) This function call is used to authorize you to start logging the events in the CustomerSuccessBox Server. 2. analytics.load (#CSBJSLibrary) This function call is used to...