public static void NewEvent(string currency, int amount, string itemType, string itemId, string cartType, string receipt, bool autoFetchReceipt) { if (autoFetchReceipt) { GA_Wrapper.AddBusinessEventAndAutoFetchReceipt(currency, amount, itemType, itemId, cartType); } else { GA_Wrapper.AddBusinessEvent(currency, amount, itemType, itemId, cartType, receipt); } }
public static void NewEvent(string currency, int amount, string itemType, string itemId, string cartType, string receipt, bool autoFetchReceipt, IDictionary <string, object> fields, bool mergeFields) { if (autoFetchReceipt) { GA_Wrapper.AddBusinessEventAndAutoFetchReceipt(currency, amount, itemType, itemId, cartType, fields, mergeFields); } else { GA_Wrapper.AddBusinessEvent(currency, amount, itemType, itemId, cartType, receipt, fields, mergeFields); } }