> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblUserStatisticsTrackStatistics

> XblUserStatisticsTrackStatistics

# XblUserStatisticsTrackStatistics

Configures the set of stats that will be tracked real-time. This call will have no affect on stats that were already being tracked.

## Syntax

```cpp theme={null}
HRESULT XblUserStatisticsTrackStatistics(  
         XblContextHandle xblContextHandle,  
         const uint64_t* xboxUserIds,  
         size_t xboxUserIdsCount,  
         const char* serviceConfigurationId,  
         const char** statisticNames,  
         size_t statisticNamesCount  
)  
```

### Parameters

*xblContextHandle*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XBOX live context for the local user.

*xboxUserIds*   \_In\_\
Type: uint64\_t\*

Array of XboxUserIDs for whom to track the provided stats.

*xboxUserIdsCount*   \_In\_\
Type: size\_t

Length of xboxUserIds array.

*serviceConfigurationId*   \_In\_z\_\
Type: char\*

The Service Configuration ID (SCID) for the title. The SCID is considered case sensitive so paste it directly from the Partner Center.

*statisticNames*   \_In\_\
Type: char\*\*

Array of statistic names for which real-time updates will be received.

*statisticNamesCount*   \_In\_\
Type: size\_t

Length of statisticNames array.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Updates will be delivered via XblStatisticChangedHandlers. Note that the set of tracked stats can be updated independent from the handlers.

## Requirements

**Header:** user\_statistics\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[user\_statistics\_c](/reference/live/xsapi-c/user_statistics_c/user_statistics_c_members)


## Related topics

- [XblUserStatisticsStopTrackingStatistics](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsstoptrackingstatistics.md)
- [XblUserStatisticsStopTrackingUsers](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsstoptrackingusers.md)
- [XblUserStatisticsResult](/reference/live/xsapi-c/user_statistics_c/structs/xbluserstatisticsresult.md)
- [XblUserStatisticsGetMultipleUserStatisticsAsync](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsasync.md)
- [XblUserStatisticsGetSingleUserStatisticsAsync](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticsasync.md)
