Using Custom Dimensions - GameAnalytics/GA-SDK-CPP GitHub Wiki

GameAnalytics support the use of 3 custom dimensions.

  • Custom01
  • Custom02
  • Custom03

During the game it is possible to set the active value for each custom dimension dynamically. Once a dimension is set it will be persisted across sessions/game-start and automatically be added to these event categories.

  • Business
  • Resource
  • Progression

Setting each custom dimension. To reset any of the current custom dimensions just set it to empty string.

gameanalytics::GameAnalytics::setCustomDimension01("ninja");
gameanalytics::GameAnalytics::setCustomDimension02("dolphin");
gameanalytics::GameAnalytics::setCustomDimension03("horde");

gameanalytics::GameAnalytics::setCustomDimension03(""); // reset custom dimension 3
Field Type Description Example
customDimension string One of the available dimension values set in the configuration phase. Will persist cross session. Set to empty string to reset. ninja

 

:information_source:
Read more about custom dimensions here.

 

NEXT  →