fix: 补全打点缺失 SubPruchase 点位的 BUG

deeplink
胡宇飞 2024-03-18 15:15:46 +08:00
parent c341374748
commit a056a5c23d
2 changed files with 5 additions and 4 deletions

View File

@ -58,12 +58,14 @@ namespace Guru
if (orderType == 0) if (orderType == 0)
{ {
AdjustService.TrackIAPPurchase(usdPrice, productId); AdjustService.TrackIAPPurchase(usdPrice, productId);
Analytics.IAPPurchase(usdPrice, productId);
} }
else if (orderType == 1) else if (orderType == 1)
{ {
AdjustService.TrackSubPurchase(usdPrice, productId); AdjustService.TrackSubPurchase(usdPrice, productId);
Analytics.SubPurchase(usdPrice, productId);
} }
Analytics.IAPPurchase(usdPrice, productId);
} }
} }
} }

View File

@ -62,16 +62,15 @@ namespace Guru
{ {
pid = productId; pid = productId;
AdjustService.TrackIAPPurchase(usdPrice, productId); // 上报 IAP 支付事件 AdjustService.TrackIAPPurchase(usdPrice, productId); // 上报 IAP 支付事件
Analytics.IAPPurchase(usdPrice, pid);
} }
if (!string.IsNullOrEmpty(subscriptionId)) if (!string.IsNullOrEmpty(subscriptionId))
{ {
pid = subscriptionId; pid = subscriptionId;
AdjustService.TrackSubPurchase(usdPrice, productId); // 上报 订阅 支付事件 AdjustService.TrackSubPurchase(usdPrice, productId); // 上报 订阅 支付事件
Analytics.SubPurchase(usdPrice, productId);
} }
Analytics.IAPPurchase(usdPrice, pid);
return;
} }
} }