Pragma Analytics #

Pragma will automatically send events when a telemetry plugin is configured.

Order Event #

Pragma sends an event for each new order it processes.

  • The use the name PragmaOrderEvent to filter on ingestion.
  • The idHash is a hashed value of the player’s social id. Use to identify orders by the same player.

Example Order Event

{
  "name": "PragmaOrderEvent",
  "eventJson": "{\"orderId\":\"6e7f9325-a956-482a-9e6f-b74fd7d50ce2\",\"skuId\":\"60_coins_pack\",\"quantity\":1,\"purchaseDateMillis\":1759790990000,\"provider\":\"STEAM\",\"providerDetails\":\"{\\\"steamSource\\\":{\\\"steamInventorySource\\\":{\\\"itemId\\\":\\\"111111111111111111\\\",\\\"itemDefId\\\":\\\"500\\\"}}}\"}",
  "timestampMillis": 1759791792093,
  "idHash": -6423978704447485233,
  "nameHash": -4453822347025259182
}

EventJson schema

{
  "orderId": "6e7f9325-a956-482a-9e6f-b74fd7d50ce2", 
  "skuId": "60_coins_pack",
  "quantity": 1,
  "purchaseDateMillis": 1759790990000,
  "provider": "STEAM",
  "providerDetails": {
    "steamSource": {
      "steamInventorySource": {
        "itemId": "111111111111111111",
        "itemDefId": "500"
      }
    }
  }
}
PropertyDescription
orderIdUnique id generated by Pragma when an order is first processed.
skuIdThe unique id assigned by you in your order mappings content catalog.
quantityThe quantity purchased for by the player.
purchaseDateMillisThe date the customer made the purchase.
providerThe provider the purchase was made through. One of: STEAM, EPIC, TWITCH, PLAYSTATION, XBOX
providerDetailsProvider specific details - this object is unique per provider. Example below is a purchase through Steam.
└─ steamSource
└── steamInventorySource
└─── itemId
└─── itemDefId

Disable Pragma Events #

You can turn off Pragma events by disabling in your social config through the TelemetryServiceConfig.

social:  
  serviceConfigs:
    TelemetryServiceConfig:
      disablePragmaAnalytics: true