public static void SetCustomDimension01(string dimension) { GAThreading.PerformTaskOnGAThread("setCustomDimension01", () => { if (!GAValidator.ValidateDimension01(dimension)) { GALogger.W("Could not set custom01 dimension value to '" + dimension + "'. Value not found in available custom01 dimension values"); return; } GAState.SetCustomDimension01(dimension); }); }
private static void ValidateAndFixCurrentDimensions() { // validate that there are no current dimension01 not in list if (!GAValidator.ValidateDimension01(CurrentCustomDimension01)) { GALogger.D("Invalid dimension01 found in variable. Setting to nil. Invalid dimension: " + CurrentCustomDimension01); SetCustomDimension01(""); } // validate that there are no current dimension02 not in list if (!GAValidator.ValidateDimension02(CurrentCustomDimension02)) { GALogger.D("Invalid dimension02 found in variable. Setting to nil. Invalid dimension: " + CurrentCustomDimension02); SetCustomDimension02(""); } // validate that there are no current dimension03 not in list if (!GAValidator.ValidateDimension03(CurrentCustomDimension03)) { GALogger.D("Invalid dimension03 found in variable. Setting to nil. Invalid dimension: " + CurrentCustomDimension03); SetCustomDimension03(""); } }