All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
Documentation · Quick Start · QQ Group: 467608841 / 233840761
GameFrameX GameAnalytics Component - Provides game developers with an interface for integrating and using game analytics functionality. This component wraps the GameAnalytics SDK to offer event tracking, timer functionality, and custom event reporting.
- Event Tracking - Report simple events, value-based events, and custom field events
- Timer Functionality - Start and stop timers for measuring event durations
- Initialization Guard - All methods check initialization status before executing
- Custom Fields - Support for dictionary-based custom event data
Choose one of the following methods:
-
Edit your Unity project's
Packages/manifest.jsonand add thescopedRegistriessection:{ "scopedRegistries": [ { "name": "GameFrameX", "url": "https://gameframex.upm.alianblank.uk", "scopes": [ "com.gameframex" ] } ], "dependencies": { "com.gameframex.unity.gameanalytics.gameanalytics": "1.1.0" } }scopescontrols which packages are resolved through this registry. Only packages whose names start withcom.gameframexwill be fetched from it. -
Add to
manifest.jsondependencies:{ "com.gameframex.unity.gameanalytics.gameanalytics": "https://github.com/gameframex/com.gameframex.unity.gameanalytics.gameanalytics.git" } -
Use Package Manager in Unity with Git URL:
https://github.com/gameframex/com.gameframex.unity.gameanalytics.gameanalytics.git -
Clone the repository into your Unity project's
Packagesdirectory. It will be loaded automatically.
- Ensure the component is properly initialized before calling any methods
- If
_isInitisfalse, no operations will be performed, ensuring events are only reported after initialization - Event names should be representative and unique to ensure accurate data analysis
- Import the namespace
GameFrameX.GameAnalytics.Runtimein your project - Ensure
GameAnalyticsManageris properly instantiated and registered withGameFramework - Use
Dictionary<string, string>for custom fields
See CHANGELOG.md for details.
| Package | Description |
|---|---|
| (无) | - |
- QQ Group: 467608841 / 233840761
See LICENSE.md for license information.