Skip to main content
Version: SDK 6.0.x

Integrate with Firebase

If you're using the Firebase SDK alongside the justtrack SDK, you can use the justtrack SDK to send a user's Firebase App Instance ID to the justtrack backend. Later, the justtrack backend can forward events to Firebase, allowing you to measure events happening outside your app. To enable this, the justtrack backend needs the Firebase App Instance ID of the user.

Before you begin

Please review the following compatibility matrix to make sure you're using compatible versions:

justtrack SDKFirebase SDK
6.0.0+12.x - 13.x

Integrate with Firebase

  1. In the Unity Editor, navigate to the justtrack SDK configuration prefab.
  2. In the Android and/or iOS sections, enable Add Firebase Adapter. This automatically publishes the Firebase App Instance ID to the justtrack backend for the respective platforms.
  3. Call the integration method in your code:
using JustTrack;

// Call this after SDK initialization
JustTrackSDK.IntegrateWithFirebase(
pOnSuccess: () => {
Debug.Log("Firebase integration successful");
},
pOnFailure: (error) => {
Debug.LogError($"Firebase integration failed: {error}");
}
);