Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Remove session load from GA A/B in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
vhnunes committed Mar 23, 2022
1 parent 1779724 commit 0770fc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Assets/NanoSauce/Analytics/NanoSauceGA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ internal void RegisterDesignEvent(string eventString, float eventFloatValue = fl

private void LoadLastCustomDimension()
{
#if UNITY_EDITOR

return; // Don`t want editor to load last session dimension value.

#endif

if (PlayerPrefs.HasKey(CUSTOM_DIMENSION_SAVE_KEY))
currentCustomDimension = PlayerPrefs.GetString(CUSTOM_DIMENSION_SAVE_KEY);
}
Expand Down

0 comments on commit 0770fc8

Please sign in to comment.