Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Using Custom Dimensions

Martin Treacy-Schwartz edited this page Mar 15, 2017 · 4 revisions

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

 

ℹ️
Read more about custom dimensions here.

 

NEXT  →

Clone this wiki locally