For the complete documentation index, see llms.txt. This page is also available as Markdown.

firebase

Use Firebase Analytics when the buyer's project already uses Firebase or Firebase/Google Analytics reporting.

Firebase setup

1

Import the Firebase SDK

Import the official Firebase Unity SDK.

2

Import Firebase Analytics

Import the Firebase Analytics package, for example FirebaseAnalytics.unitypackage.

3

Register applications

Register the Android and iOS applications in the buyer's Firebase project.

4

Download configuration files

Download the platform configuration files.

5

Add configuration files to Unity

Place the configuration files directly in the Unity project's Assets folder:

Android

google-services.json

iOS

GoogleService-Info.plist
6

Verify file names

Make sure the file names are exact and do not contain suffixes such as (1) or (2).

7

Add the scripting define

FIREBASE_ANALYTICS
8

Select Firebase

Select Firebase in GameSettings.

Firebase IDs and configuration

Firebase project and application identifiers belong in the official Firebase configuration files:

  • google-services.json

  • GoogleService-Info.plist

Do not add Firebase IDs to:

  • GameSettings

  • the HomeDesignMatch3Kit source files

  • the analytics provider code

The provider:

  • checks and fixes Firebase dependencies;

  • initializes the default Firebase app;

  • keeps analytics collection disabled until enabled by the kit setting or consent flow;

  • converts common analytics parameter types;

  • sends events through FirebaseAnalytics.LogEvent.

The Unity Analytics Schema Setup Wizard is not required for Firebase.

Firebase events are defined by the event names and parameters sent through the Firebase SDK and are inspected in Firebase or Google Analytics reporting.

Official documentation