public static void SetCustomDimension03(string dimension) { GAThreading.PerformTaskOnGAThread("setCustomDimension03", () => { if (!GAValidator.ValidateDimension03(dimension)) { GALogger.W("Could not set custom03 dimension value to '" + dimension + "'. Value not found in available custom03 dimension values"); return; } GAState.SetCustomDimension03(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(""); } }