custom events
Adding a new analytics event
The included event list is automatic, but adding a new event requires three changes.
Emit the event
Send the event from the relevant runtime system through:
IAnalyticsServiceThe event is then routed to the selected provider.
Firebase and ByteBrew can send a new generic event without provider-specific mapping.
GameAnalytics sends generic events as design events unless the event requires special progression or ad mapping.
After adding a Unity Analytics schema, run:
HomeDesignMatch3Kit > Settings > Analytics Schema Setup > Populate EventsRun the wizard for every UGS environment where the schema is required.
Analytics consent
Enable Analytics is the main kit-level collection switch.
The game initializes the selected provider and then applies the value of:
GameSettings.enableAnalyticsFor a production privacy flow:
Keep analytics disabled before consent.
Display the appropriate privacy or consent UI.
Enable analytics only after the user grants consent.
Disable analytics if consent is rejected or withdrawn.
The runtime service exposes:
IAnalyticsService.SetDataCollectionEnabled(bool enabled);