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
PragmaOrderEventto filter on ingestion. - The
idHashis 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"
}
}
}
}
| Property | Description |
|---|---|
| orderId | Unique id generated by Pragma when an order is first processed. |
| skuId | The unique id assigned by you in your order mappings content catalog. |
| quantity | The quantity purchased for by the player. |
| purchaseDateMillis | The date the customer made the purchase. |
| provider | The provider the purchase was made through. One of: STEAM, EPIC, TWITCH, PLAYSTATION, XBOX |
| providerDetails | Provider 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