Monetization Events
Track all revenue-generating events including in-app purchases, subscriptions, virtual currency, and blockchain transactions.
transaction
GameRebellion.TrackTransaction(new GrTransactionEvent
{
Amount = 4.99,
Currency = "USD",
Type = "iap",
Description = "Premium Sword",
Status = "success",
UsdValue = 4.99
});
| Field | Type | Required | Description |
|---|---|---|---|
Amount | double | No | Transaction amount in original currency |
Currency | string | Yes | ISO 4217 currency code |
Type | string | No | iap, virtual, subscription, refund |
Description | string | No | Human-readable item name |
Status | string | No | success, failed, pending, refunded |
UsdValue | double | No | Normalized USD value for cross-currency reporting |
crypto_transaction
GameRebellion.TrackCryptoTransaction(new GrCryptoTransactionEvent
{
Amount = 0.05,
Currency = "ETH",
Type = "nft_purchase",
Blockchain = "ethereum",
UsdValue = 150.00,
Status = "confirmed"
});
| Field | Type | Required | Description |
|---|---|---|---|
Amount | double | Yes | Transaction amount |
Currency | string | Yes | Cryptocurrency symbol |
Type | string | No | nft_purchase, token_transfer, staking |
Blockchain | string | No | Blockchain network |
UsdValue | double | No | USD equivalent |
Status | string | No | confirmed, pending, failed |