Quick Start Guide
Get up and running with Ilara in under 5 minutes. This guide walks you through installing the SDK, initializing it, and tracking your first event.
- An Ilara account (sign up at dashboard.ilara.ai)
- Your API key from the dashboard
- A game project in Unity, Unreal, Godot, or any platform with HTTP support
Step 1: Install the SDK
Choose your game engine and follow the installation instructions. Ilara supports Unity, Unreal Engine, Godot, and any platform via REST API.
Unity
Add the package via Unity Package Manager. Add this to your manifest.json:
{class="code-string">"dependencies": {class="code-string">"com.ilara.sdk": class="code-string">"https:class="code-commentclass="code-string">">//github.com/ilara/unity-sdk.git"}}
Unreal Engine
Copy the Ilara plugin to your project's Plugins directory:
# Clone the plugingit clone https:class=class="code-string">"code-comment">//github.com/ilara/unreal-sdk.git Plugins/Ilara# Regenerate project files# Enable in Edit > Plugins > Ilara
Godot
Copy the addon to your project:
# Clone to addons foldergit clone https:class=class="code-string">"code-comment">//github.com/ilara/godot-sdk.git addons/ilara# Enable in Project > Project Settings > Plugins
Step 2: Initialize the SDK
Initialize Ilara as early as possible in your game's lifecycle, typically in your main game manager or entry point.
Unity (C#)
using Ilara;using UnityEngine;public class GameManager : MonoBehaviour{async void Start(){class=class="code-string">"code-comment">// Initialize with your API keyawait IlaraClient.Instance.Initialize();Debug.Log(class="code-string">"Ilara initialized successfully!");}}
Godot (GDScript)
extends Nodefunc _ready() -> void:# Initialize with your API keyIlara.initialize(class="code-string">"pk_live_your_api_key")print(class="code-string">"Ilara initialized!")
Step 3: Identify the Player
Before tracking events, identify the player. This creates or updates their profile in Ilara and returns their lifecycle stage.
class=class="code-string">"code-comment">// Identify the player with their ID and attributesvar player = await IlaraClient.Instance.IdentifyPlayer(class="code-string">"player_123", class=class="code-string">"code-comment">// Your player's unique IDnew {level = 5,country = class="code-string">"US",is_vip = false});Debug.Log($class="code-string">"Player lifecycle: {player.lifecycle_stage}");class=class="code-string">"code-comment">// Output: class="code-string">"Player lifecycle: active"
- new - First session, just joined
- active - Regular engagement
- engaged - High activity, potential payer
- at_risk - Declining engagement
- churned - No recent activity
- returned - Re-engaged after churn
Step 4: Track Events
Track meaningful player actions to understand behavior and enable AI-powered retention.
class=class="code-string">"code-comment">// Track level completionIlaraClient.Instance.TrackEvent(class="code-string">"level_complete", new {level = 5,score = 12500,time_seconds = 180,stars_earned = 3});class=class="code-string">"code-comment">// Track a purchaseIlaraClient.Instance.TrackPurchase(productId: class="code-string">"gem_pack_100",amount: 4.99m,currency: class="code-string">"USD");class=class="code-string">"code-comment">// Track tutorial progressIlaraClient.Instance.TrackEvent(class="code-string">"tutorial_step", new {step = 3,step_name = class="code-string">"first_battle",completed = true});
- Use snake_case for event names
- Be descriptive: level_complete vs event1
- Include relevant context in properties
- Track both success and failure states
Step 5: Use Feature Flags
Feature flags let you control features remotely, run A/B tests, and roll out changes safely.
class=class="code-string">"code-comment">// Check if a feature is enabledif (IlaraClient.Instance.IsFlagEnabled(class="code-string">"double_xp_weekend")){ApplyDoubleXP();}class=class="code-string">"code-comment">// Get a typed flag value with defaultint maxLevel = IlaraClient.Instance.GetFlag(class="code-string">"max_level", 50);class=class="code-string">"code-comment">// Get a string variant for A/B testsstring checkoutFlow = IlaraClient.Instance.GetFlag(class="code-string">"checkout_variant", class="code-string">"control");switch (checkoutFlow){case class="code-string">"variant_a":ShowSimplifiedCheckout();break;case class="code-string">"variant_b":ShowOneClickCheckout();break;default:ShowOriginalCheckout();break;}
Step 6: Verify in Dashboard
Head to your Ilara dashboard to verify events are coming through:
Open the Dashboard
Go to dashboard.ilara.ai and log in with your account.
Check Live Events
Navigate to Events > Live Stream to see events arriving in real-time.
View Player Profiles
Go to Players and search for your test player to verify their profile was created.
Next Steps
You've successfully integrated Ilara! Here's what to explore next:
- Create player segments - Target specific player groups
- Set up churn prediction - Identify at-risk players
- Configure AI messaging - Automate personalized outreach
- Advanced feature flags - A/B testing and rollouts
Join our Discord community or email us at [email protected].