public GoogleAnalyticsV3 GA; // instance of Google Analytics void Awake() { if (load == null) { // Makes the object target not be destroyed automatically when loading a new scene DontDestroyOnLoad(gameObject); load = this; } else if (load != this) { Destroy(gameObject); } }