Skip to content

Unity Integration

Get BoostOps integrated with your Unity game in just a few minutes. This guide covers the essential steps to start tracking your game’s performance and ad spend profitability.

Package Manager Method (Recommended):

  1. Open Unity Package Manager (WindowPackage Manager)
  2. Click +Add package from git URL
  3. Enter: https://github.com/boostops/unity-sdk.git
  4. Click Add

Add this to your main game manager script:

using UnityEngine;
using BoostOps;
public class GameManager : MonoBehaviour
{
[SerializeField] private string gameId = "YOUR_GAME_ID";
[SerializeField] private string apiKey = "YOUR_API_KEY";
void Start()
{
// Initialize BoostOps
BoostOpsSDK.Initialize(gameId, apiKey);
// Track game start
BoostOpsSDK.TrackEvent("game_start");
Debug.Log("BoostOps initialized successfully");
}
}

Add essential tracking for executive dashboard insights:

public class GameEvents : MonoBehaviour
{
// Track revenue (critical for profitability)
public void OnPurchase(string productId, float amount)
{
BoostOpsSDK.TrackRevenue("purchase", amount, "USD",
new Dictionary<string, object>
{
{"product_id", productId}
});
}
// Track level completion
public void OnLevelComplete(int level)
{
BoostOpsSDK.TrackEvent("level_complete",
new Dictionary<string, object>
{
{"level", level},
{"time_taken", Time.time}
});
}
// Track ad views
public void OnAdWatched(string placement)
{
BoostOpsSDK.TrackEvent("ad_watched",
new Dictionary<string, object>
{
{"placement", placement}
});
}
}
  1. Sign up at app.boostops.com/sign-up
  2. Create a game project in your dashboard
  3. Go to Settings → SDK Integration
  4. Copy your Game ID and API Key

After integration, check your BoostOps dashboard:

  1. Run your game with the SDK
  2. Perform test actions (start game, complete level, make purchase)
  3. Check Dashboard → Real-time Events
  4. Verify events appear within 5-10 minutes

Once your basic integration is working:


Ready to see your data? Your executive dashboard will show insights within 24 hours of integration!