Integration Options

For a full integration, there are two different steps in order to get the full picture into API usage and user behavior:

  1. Tracking API Calls
  2. Tracking Customer Profiles

1. Track API calls Track API calls

To monitor API calls with Moesif, you can use any of the the Server Middleware SDKs such as for Node.js, Python, and AWS Lambda. If you already have a centralized gateway handling your API traffic such as Kong, NGINX, or Tyk, you can use one of the API Gateway Plugins in lieu of a SDK.

Data that is logged

The SDKs will capture typical data around API calls including the latency, URI route, response status, among other information. SDKs have the option to chose whether to log the body payloads, or mask certain header or body fields if you have privacy requirements or in a highly regulated industry.

Incoming vs outgoing

The Moesif SDKs can log both incoming API calls hitting your services and also outgoing API calls to other services and APIs. Each SDK has options to select what you want to log.

2. Track Customers Track Customers

While optional, it’s highly recommended to also integrate customer tracking. You can decide to track only individual users, track companies, or track both depending on the type of API consumers you have. A company is simply a group of related users under the same account and makes it easier especially for B2B companies who want to track at the = account level.

Track Users

While optional, it’s highly recommended to also integrate user tracking. This enables you to tie API usage to individual users to better understand cohort analysis, conversion funnels, user demographics, and acquisition channels. You can store any attributes with users such as their sign up date, email, first and last name, and employment title.

You can store users via one of the updateUser() methods, or you can leverage [moesif-browser-js][{site.baseurl}}/client-integration/browser-js/#identifyuser-string-object–null), which will automatically capture context directly from a user’s device including marketing attribution, UTM parameters, device type, and location information.

Track Companies

This is similar to tracking users, but to track at the company or account level. This enables you to tie API usage to companies to better understand cohort analysis, conversion funnels, company demographics, and acquisition channels. You can decide to track companies only, track users only, or track both depending on the type of consumers your API has. In general, we find many B2B companies want to track both at the company level which is simply a group of users.

You can store companies via one of the updateCompany() methods on any of the API libs, or you can leverage [moesif-browser-js][{site.baseurl}}/client-integration/browser-js/#identifycompany-string-object-string–null), which will automatically capture context directly from a user’s device including marketing attribution, UTM parameters, device type, and location information.

Other integrations

Moesif also has a codeless option via the Moesif cloud proxy which can be used in environments where installing an SDK doesn’t make since such as for monitoring third party web hooks. The cloud proxy works by generating a trackable URL that is a drop in replacement for your original URL.

Updated: