@chiyou/minigame-framework 1.4.7 → 1.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -396,25 +396,22 @@ export class AnalyticsMgr extends BaseMgr {
396
396
 
397
397
  /**
398
398
  * 广告加载成功
399
- * @param adScene 广告场景(业务自定义,如 revive / daily_bonus)
399
+ * 注意:广告是预加载的,加载时尚未确定场景,因此不上报 ad_scene
400
400
  */
401
- public trackAdLoadSuccess(adScene: string): void {
401
+ public trackAdLoadSuccess(): void {
402
402
  if (!this._isEnabled) return;
403
- this.trackEvent(AnalyticsEventId.AdLoadSuccess, {
404
- [AnalyticsParamKey.AdScene]: adScene,
405
- });
403
+ this.trackEvent(AnalyticsEventId.AdLoadSuccess);
406
404
  }
407
405
 
408
406
  /**
409
407
  * 广告加载失败
410
- * @param adScene 广告场景
408
+ * 注意:广告是预加载的,加载时尚未确定场景,因此不上报 ad_scene
411
409
  * @param errCode 错误码
412
410
  * @param errMsg 错误信息
413
411
  */
414
- public trackAdLoadError(adScene: string, errCode: number, errMsg: string): void {
412
+ public trackAdLoadError(errCode: number, errMsg: string): void {
415
413
  if (!this._isEnabled) return;
416
414
  this.trackEvent(AnalyticsEventId.AdLoadError, {
417
- [AnalyticsParamKey.AdScene]: adScene,
418
415
  [AnalyticsParamKey.ErrCode]: errCode,
419
416
  [AnalyticsParamKey.ErrMsg]: errMsg,
420
417
  });
@@ -446,9 +443,9 @@ export class AnalyticsMgr extends BaseMgr {
446
443
  * 广告跳过(isEnded=false)
447
444
  * @param adScene 广告场景
448
445
  */
449
- public trackAdShowSkip(adScene: string): void {
446
+ public trackAdShowGiveup(adScene: string): void {
450
447
  if (!this._isEnabled) return;
451
- this.trackEvent(AnalyticsEventId.AdShowSkip, {
448
+ this.trackEvent(AnalyticsEventId.AdShowGiveup, {
452
449
  [AnalyticsParamKey.AdScene]: adScene,
453
450
  });
454
451
  }