--- title: "Tracking Server Side Usage Data" slug: "tracking-server-side-usage-data" updated: 2026-11-23T12:30:11Z published: 2026-11-23T12:30:11Z canonical: "support.gainsight.com/tracking-server-side-usage-data" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Tracking Server Side Usage Data Currently the tracking SDK automatically tracks every user event but over time usage tracking goes beyond ui user interaction. Products very often build and expose **APIs** and **integration modules**. Tracking the usage of these capabilities which are also considered 'sticky' features can indicate adoption like any other ui based features. Collecting data should normally be either in real-time and event based or periodically via a data collector that can also collect internal production data that may be used for engagement by Gainsight PX. ## Tracking Backend Aggregated Data Any data outside the UI can be pushed into Gainsight PX via secured REST API. There are couple of options to store these metrics into Gainsight PX: #### Tracking daily aggregated backend events Usage trends over time can be tracked using [custom events](/v1/docs/use-custom-event-api) via the REST API and passing the metric name and the aggregated values as part of the payload. ```plaintext // Track an aggregated metric aptrinsic('track', 'dailyApiCalls',    {    "timestamp":1658965172096,    "apiCalls":10512,    "apiType":"RESTful",    "Category":"Machine Learning",    "subscriptionName":"GCP"    } ); ``` #### Populating the aggregated value under the User and account attributes Gaining visibility to the most recent values and allowing you to trigger in-app engagement - Using the [Gainsight PX Rest API](https://px-apidocs.gainsight.com/) ([old API docs](https://gainsightpx.docs.apiary.io/#)) - Using the [Java SDK](/v1/docs/gainsight-px-java-sdk) - Using the [data loader](/v1/docs/gainsight-px-data-loader) There are many useful data-collectors that can be used or tools like [Mulesoft](https://www.mulesoft.com/), [Boomi](https://boomi.com/), [Zapier](https://zapier.com/) that can be used as well. ## Analyze the Data Analyzing backend data can be done via QueryBuilder using its event property Sum and Average functionality How to measure daily aggregated metric - Use **Sum or Average** functionality when selecting a date range with a **Daily** scope - Use **Average** when using **Weekly** or **Monthly** scopes. Sum should not be used as it will aggregate daily into a week or month period which will present a 7X or 30X multiple of the daily metric. ![clipboard_ed5acac503b3d572450c10705b58223c2.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/clipboard_ed5acac503b3d572450c10705b58223c2.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A02%3A06Z&se=2026-11-24T19%3A02%3A06Z&sr=b&sp=r&sig=UlVuMqUHRsbZsVQ%2Ft2jIq%2B6i0VDq0BfGATsI3l6u82I%3D) ![clipboard_ecfdc597c8e5cba56d6502d6e3469a7c1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/clipboard_ecfdc597c8e5cba56d6502d6e3469a7c1.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A02%3A06Z&se=2026-11-24T19%3A02%3A06Z&sr=b&sp=r&sig=igI9ywPaKErhlQqpFjHIjIsaTjrJBjba4PAPNYiAOPo%3D) ![clipboard_e9b663e27683ee33c7c5672beab43adef.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/clipboard_e9b663e27683ee33c7c5672beab43adef.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A02%3A06Z&se=2026-11-24T19%3A02%3A06Z&sr=b&sp=r&sig=J86XNgywe0qEZG0xAFS7KeLPRzDX9RpCu60moi9r2Z4%3D) To learn about all frequently asked questions, refer *Analytics FAQs* article from the [Additional Resources](/v1/docs/tracking-server-side-usage-data#additional-resources) section. ## Additional Resources | [Analytics FAQs](/v1/docs/analytics-faqs) | | --- |