Your First Event
This guide walks you through sending your first event to GameRebellion and verifying it arrives.
Prerequisites
- SDK installed and initialized (see Unity Installation or S2S API)
- API key configured
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
- Open the GameRebellion Platform.
- Go to Analytics > [Your Game] > Live Events.
- You should see your
feature_useevent appear within seconds. - Your game status should change to "Connected".
tip
If events don't appear, check the Troubleshooting guide.