Planning
Successful game analysis requires up-front planning to ensure you implement the correct events and parameters. While every game is different, most games use the same core mechanics and features. We’ve tried to standardize the instrumentation process for consistency across all games. Talk with your Project Manager to list which events to integrate at each developmental stage or for help identifying the correct event and required parameters for your game mechanics. Please review all sections of this guide to familiarize yourself with our systems.
Events Overview
Lion - Analytics package provide many event types for tracking and analyzing aspects of your game.
Event Type | Description |
---|---|
Ad | Use Ad events to track how players interact with ads (interstitials, rewarded videos, and banners) in your game and track ad performance throughout your game.
Learn more: Ad Events |
Debug | Debug Events help you understand if some part of your game is causing crashes or acting unexpectedly. Use Debug events when players encounter errors, including the error message. These diagnostic events can help you see what is happening behind the scenes in your game (e.g., load time, network errors, etc.)
Learn more: Debug Events |
Economy | Use economy events to track In-App Purchases or when players gain, spend, or use in-game resources like currency or boosters. You can include extra information about the type of currency, screen, or area of the game where the transaction occurred.
Learn more: Economy Events |
Experiment | Experiment events help you track players participating in A/B tests. Use A/B tests to optimize your game or when trying new features. Typical A/B tests will have a control group and one or more experimental variant groups to which players are assigned.
Learn more: Experiment Events |
Game | Use Game events to track basic game features such as when players unlock achievements and features, use power-ups, and interact with UI elements (screens, popups, buttons).
Learn more: Game Events |
Level | Use Level events to track when players start, finish, abandon, or restart levels in your game. In general, linear progression means players can only progress in a single order through sequentially numbered levels (e.g., Level
Learn more: Level Events |
Mission | Use mission events to track users’ progress that doesn’t require a pre-determined order. Quests, missions, tasks, and daily challenges are good mechanics to track with mission events.
Learn more: Mission Events |
Social | Use social events to track when players connect their social media accounts (e.g., FaceBook, Game Center, or Google Play), invite friends, or send gifts to other players.
Learn more: Social Events |
Custom | Custom events are not recommended and shouldn’t be necessary. Our standard events (above) should cover all common use cases and game mechanics in mobile games. If your game has an unusual mechanic that doesn’t align with our standard events, please contact Support, and we will help you. Learn more: Custom Events |
Helper Methods
Many events have required and optional parameters. Rather than manually adding these parameters to every event you fire, these methods allow you to set the value once, and Lion - Analytics will automatically add to all events
Method | Other Methods In addition, LionSDK can provide some interanl values you can use. |
---|---|
SetGlobalAdditionalData() |
This method allows developers to add their own global parameter values that will be fired off with every subsequent event. Learn more: Implementation: Helper Functions |
ClearGlobalAdditionalData() |
Clears an entry in the developer provided global additional data. Learn more: Implementation: Helper Functions |
SetPlayerLevel() |
This method sets the global Player Level (account) value that will be attached to all events. It should be called anytime the Player Level changes.
Learn more: Implementation: Helper Functions |
ClearPlayerLevel() |
Clear a players level, and remove the tracking from other events. Learn more: Implementation: Helper Functions |
SetPlayerScore() |
This method sets the global Player Score value that will be attached to all events.
Learn more: Implementation: Helper Functions |
ClearPlayerScore() |
Clear a players score, and remove the tracking from other events. Learn more: Implementation: Helper Functions |
SetPlayerXP() |
This method sets the global Player XP (experience) value that will be attached to all events. It should be called anytime the Player XP changes.
Learn more: Implementation: Helper Functions |
ClearPlayerXP() |
Clear Player XP. Learn more: Implementation: Helper Functions |
SetSoftCurrency() |
This method sets the global Soft Currency Balance (virtual currency) value (wallet value) that will be attached to all events. It should be called anytime that virtual currency is spent or received.
Learn more: Implementation: Helper Functions |
ClearSoftCurrency() |
Clear Soft Currency. Learn more: Implementation: Helper Functions |
SetHardCurrency() |
This methods sets the global Hard Currency Balance (real currency) value (wallet value) that will be attached to all events. It should be called anytime that real currency is spent or received.
Learn more: Implementation: Helper Functions |
ClearHardCurrency() |
Clear Hard Currency balance. Learn more: Implementation: Helper Functions |
SetTutorial() |
Set Tutorial
Learn more: Implementation: Helper Functions |
RemoveLevelAttemptTrackingData() |
Clears internal attempt number tracking data for a specified level. You should not need this. Learn more: Implementation: Helper Functions |
RemoveMissionAttemptTrackingData() |
Clears internal attempt number tracking data for a specified mission You should not need this. Learn more: Implementation: Helper Functions |
Other Methods
In addition, LionSDK can provide some internal values you can use.
Method | Description |
---|---|
AbCohort() |
The method should be fired every session. If a user is in multiple AB tests, the event should be fired multiple times. This will attach the cohort information to all events.
Learn more: Experiments |
GetTotalTimeInApp() |
Returns the time in app variable that is being tracked on to all LA events currently.
Learn more: Implementation: Helper Functions |
SetWhitelistPriorityLevel() |
Set Priority level for whitelisted countries to send events.
Learn more: Implementation: Event Filter |
AddWhitelistCountries() |
Add to the list of whitelist countries to fire events.
Learn more: Implementation: Event Filter |