Skip to main content

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

Parameters

xblContextHandle   _In_
Type: 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
Last modified on August 20, 2026