Skip to content

SDKs

Unity SDK

Add Tracklyne to a Unity game: events, scenes, identify, remote feature flags and exceptions.

Install

Package Manager
Add package from git URL : com.tracklyne.unity
Boot.cs
using TracklyneAnalytics;

Tracklyne.Init("tl_your_project_token", new TracklyneConfig { Host = "https://tracklyne.com" });
Tracklyne.Capture("level completed", new Dictionary<string, object> { { "level", 3 } });
Tracklyne.Identify(player.Id);

Feature flags and errors

Tutorial.cs
if (Tracklyne.IsFeatureEnabled("new-tutorial")) ShowNewTutorial();

Unity 2021.3+, WebGL included. App opens, backgrounding and scenes are sent automatically. Turn on Capture Exceptions in the config to send errors.