Skip to main content

Predefined Dimensions

When tracking app events, you can add dimensions to store additional information about the event. The justtrack SDK provides a set of predefined dimensions that are recognized by the platform and provide standardized data for analytics.

Using predefined dimensions ensures consistency across your event tracking and enables automatic integration with justtrack's analytics features.

Dimension reference

DimensionDescriptionCommon uses
jt_actionDescribes the action being performedstart, complete, fail, success, click, load, show
jt_ad_bundle_idThe bundle ID/package name of the advertised appcom.example.app
jt_ad_instance_nameThe instance name of the ad placementDefault, Bidding, a902fc4c1628ad96
jt_ad_networkThe ad network that served the advertisementApplovin Network, Admob Bidding, Adjoe Bidding
jt_ad_placementInformation about the ad placementDefaultInterstitial, AppOpenAd, LevelSkip
jt_ad_sdkThe SDK that served the advertisementApplovin MAX, Adjoe, Ironsource
jt_ad_segmentThe segment used for ad targetingiOS LAT, Android US, Free User
jt_ad_test_groupThe ad test group identifier1, 2, 3
jt_ad_unitThe type of advertisementBanner, Rewarded, Interstitial
jt_categoryA category for organizing eventsCustom category values
jt_contextThe context in which the event occurredmain_menu, gameplay, settings
jt_detailAdditional detail about the eventCustom detail values
jt_item_idThe unique identifier of an item4561, weapon_001, skin_gold
jt_item_nameThe display name of an itemCoins, Long Sword, Parry Shield
jt_item_typeThe type or category of an itemIn-App Currency, Weapon, Armor, Skin
jt_locationThe location in the app where the event occurredhome_screen, shop, inventory
jt_methodThe method used to perform an actionemail, facebook, google, apple
jt_product_idThe product identifier for purchasesstarter_pack, no_ads, premium_subscription
jt_product_typeThe type of product being purchasedpurchase, subscription
jt_progression_1The first level of progression hierarchylevel, challenge, world, stage
jt_progression_2The second level of progression hierarchylevel_1, challenge_1, mars
jt_progression_3The third level of progression hierarchyPathA, PathB, BossFight
jt_stateThe state or status of somethingactive, inactive, paused
jt_tokenA token for validation (e.g., purchase tokens)Purchase validation tokens
jt_triggerWhat triggered the eventbutton_click, automatic, notification
jt_urlA URL associated with the eventhttps://example.com/page

Code examples

Android (Kotlin)

import io.justtrack.events.AppEvent
import io.justtrack.events.Dimension

// Using predefined dimensions with a custom event
sdk.publishEvent(AppEvent("my_custom_event")
.addDimension(Dimension.JT_ACTION, "click")
.addDimension(Dimension.JT_CATEGORY, "shop")
.addDimension(Dimension.JT_ITEM_NAME, "Premium Sword"))

// Using predefined dimensions with an ad event
sdk.publishEvent(AppEvent("ad_interaction")
.addDimension(Dimension.JT_ACTION, "show")
.addDimension(Dimension.JT_AD_UNIT, "Rewarded")
.addDimension(Dimension.JT_AD_PLACEMENT, "LevelComplete"))

iOS (Swift)

import JustTrackSDK

// Using predefined dimensions with a custom event
sdk.publish(event: AppEvent("my_custom_event")
.add(dimension: .jtAction, value: "click")
.add(dimension: .jtCategory, value: "shop")
.add(dimension: .jtItemName, value: "Premium Sword"))

// Using predefined dimensions with an ad event
sdk.publish(event: AppEvent("ad_interaction")
.add(dimension: .jtAction, value: "show")
.add(dimension: .jtAdUnit, value: "Rewarded")
.add(dimension: .jtAdPlacement, value: "LevelComplete"))

Dimension restrictions

When using dimensions with app events, keep in mind the following restrictions:

  • A single event can have a maximum of 10 dimensions
  • Each dimension can have a maximum of 1000 distinct values per day
  • Dimension values should be short, discrete identifiers (not free-form text)
tip

When possible, use predefined dimensions instead of custom dimension names. This ensures your data integrates properly with justtrack's analytics features and maintains consistency across your events.