diff --git a/Runtime/GuruCore/Runtime/Analytics/Analytics.TemplateDefine.cs b/Runtime/GuruCore/Runtime/Analytics/Analytics.TemplateDefine.cs index 606ffd3..739bad3 100644 --- a/Runtime/GuruCore/Runtime/Analytics/Analytics.TemplateDefine.cs +++ b/Runtime/GuruCore/Runtime/Analytics/Analytics.TemplateDefine.cs @@ -298,7 +298,8 @@ namespace Guru /// public static void Tch001IAPRev(double value, string productId, string orderId, string orderType, string timestamp, bool isTest = false) { - TchRevEvent(EventTchAdRev001Impression, IAPPlatform, value, orderType, productId, orderId, timestamp, isTest); + string sandbox = isTest ? "true" : "false"; + TchRevEvent(EventTchAdRev001Impression, IAPPlatform, value, orderType, productId, orderId, timestamp, sandbox); } /// @@ -310,12 +311,13 @@ namespace Guru /// /// /// - /// + /// // public static void Tch02IAPRev(double value, string productId, string orderId, string orderType, string timestamp) public static void Tch02IAPRev(double value, string productId, string orderId, string orderType, string timestamp, bool isTest = false) { if (!EnableTch02Event) return; - TchRevEvent(EventTchAdRev02Impression, IAPPlatform, value, orderType, productId, orderId, timestamp, isTest); + string sandbox = isTest ? "true" : "false"; + TchRevEvent(EventTchAdRev02Impression, IAPPlatform, value, orderType, productId, orderId, timestamp, sandbox); } /// @@ -364,9 +366,9 @@ namespace Guru /// /// /// - /// + /// private static void TchRevEvent(string evtName, string platform, double value, - string orderType = "", string productId = "", string orderId = "", string timestamp = "", bool isTest = false) + string orderType = "", string productId = "", string orderId = "", string timestamp = "", string sandbox = "") { var data = new Dictionary() { @@ -375,8 +377,6 @@ namespace Guru { ParameterCurrency, USD }, }; - string sandbox = isTest ? "true" : "false"; - //--------- Extra data for IAP receipt --------------- if(!string.IsNullOrEmpty(orderType)) data["order_type"] = orderType;