void OnLevelWasLoaded(int level) { if (!sceneName.Equals(Application.loadedLevelName)) { //Debug.Log("AnalyticsTesting: app screen event - switch to scene " + Application.loadedLevelName); sceneName = Application.loadedLevelName; GoogleUniversalAnalytics gua = GoogleUniversalAnalytics.Instance; gua.sendAppScreenHit(newLevelAnalyticsEventPrefix + sceneName); } }
// This method is here for backward compatibility (legacy example). // See the sendSystemInfoEvent() method below for an example of // a slightly customized event method. See commented-out // exampleAnalyticsTestHits() below for more analytics ideas. public static void changeScreen(string newScreenName) { gua.sendAppScreenHit(newScreenName); }