Flurry Mobile Analytics, including SDK and Analytics UI, will sunset on March 15, 2024. We're committed to assisting you during this transition. Thank you for being part of our journey. In case you see this, use an alternative option.
This is a free plugin only Android implementation for Unity 3D.
- Analytics and Remote configuration
- Lightweight
- Support most of all Unity android project
- No override of the Unity Main activity
- Warning Unity have this feature incompleted. :/ Added Preprocessor "USE_FLURRY" When you Add this package
- Unity 2018 and Higher (Via Unity Package Manager)
-
You need an Unity Project with Package Manager (Unity 2019.+)
-
In Unity Package Manager Window, just Click "+" Button, Add Git URL use the next link "https://github.com/OscarLeif/FlurryUnity.git"
-
Old Way: Open the manifest.json file in the Packages folder inside of the Project
"com.atagames.flurry": "https://github.com/OscarLeif/FlurryUnity.git",
In order to use this plugin with minify you need to copy the next instructions to your own proguard-user.txt If you dont do this when using minify the code will be stripped making the plugin useless
-keep class ata.plugins.** { *; }
-dontwarn ata.plugins
-keep class com.flurry.** { *; }
-dontwarn com.flurry
You should first create a Flurry developer account and setup your app in the website.
- You must first Initialize the Plugin.
- Call this only once.
FlurryAnalytics.Instance.Init(string flurryKeyDebug); //Never use Empty String ("") or string.Empty. Will make flurry fail.
- Call this only once.
- Set Logs to Flurry
Call FlurryAnalytics.Instance.LogEvent(string eventName, Dictionary<string, string> dictionary = null, bool record = false)
Call FlurryAnalytics.Instance.EndTimeEvent(string eventName)
Note If for some reason you use an empty value the plugin will crash. When Testing you can create a Test Key, and after complete it's a good idea to remove that Key from the Flurry Analytics console. When not using a Flurry Key just write a random value, Initialize the plugin with any value it will just make sure Minify is working fine.
- You must setup you own flurry remote configuration. Each app key have his own configuration
- If for any reason it's not possible to get remote data the Plugin will return default value. Check flurry website for more instrucctions
Call FlurryAnalytics.Instance.getRemoteString(string key, string defaultValue)
Call FlurryAnalytics.Instance.getRemoteBool(string key, bool defaultValue)
Call FlurryAnalytics.Instance.getRemoteInt(string key, int defaultValue)
Call FlurryAnalytics.Instance.getRemoteFloat(string key,float defaultValue)
Call FlurryAnalytics.Instance.getRemoteLong(string key, long defaultValue)
This is based from this project: https://github.com/Majchrzak/Flurry-Unity-3D
install as Submodule
git submodule add https://github.com/OscarLeif/FlurryUnity Assets/Submodules/Flurry
Oscar Leif