Skip to main content

Your First Event

This guide walks you through sending your first event to GameRebellion and verifying it arrives.


Prerequisites

Unity SDK

using GameRebellionSdk.Unity;

// After Initialize() returns true:
bool sent = GameRebellion.TrackFeatureUse(new GrFeatureUseEvent
{
Type = "test",
Name = "first_event",
Category = "setup",
CompletionStatus = "success"
});

Debug.Log(sent ? "Event sent!" : $"Failed: {GameRebellion.GetLastError()}");

// Force-send buffered events immediately
GameRebellion.Flush();

Server-to-Server API

import requests

response = requests.post(
"https://sdk-api.gamerebellion.com/api/v1/event",
headers={"X-API-Key": "<YOUR_API_KEY>"},
json={
"event_type": "feature_use",
"payload": {
"type": "test",
"name": "first_event",
"category": "setup",
"completion_status": "success"
}
}
)

assert response.status_code == 200 # Event accepted

Verify in the Dashboard

  1. Open the GameRebellion Platform.
  2. Go to Analytics > [Your Game] > Live Events.
  3. You should see your feature_use event appear within seconds.
  4. Your game status should change to "Connected".
tip

If events don't appear, check the Troubleshooting guide.