115 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			115 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			C#
		
	
	
| namespace Guru
 | ||
| {
 | ||
| 	public enum ELevelResult
 | ||
| 	{
 | ||
| 		success,
 | ||
| 		fail,
 | ||
| 		timeout,
 | ||
| 		exit,
 | ||
| 	}
 | ||
| 	
 | ||
| 	//打点常量定义
 | ||
| 	public static partial class Analytics
 | ||
| 	{
 | ||
| 		public static readonly string TAG = "Analytics";
 | ||
| 		// 美元符号
 | ||
| 		public static readonly string USD = "USD"; 
 | ||
| 		// 广告平台
 | ||
| 		public static readonly string AdMAX = "MAX"; 
 | ||
| 		
 | ||
| 		//IAP打点事件
 | ||
| 		public static readonly string EventIAPFirst = "first_iap";
 | ||
| 		public static readonly string EventIAPImp = "iap_imp";
 | ||
| 		public static readonly string EventIAPClose = "iap_close";
 | ||
| 		public static readonly string EventIAPClick = "iap_clk";
 | ||
| 		public static readonly string EventIAPReturnTrue = "iap_ret_true";
 | ||
| 		public static readonly string EventIAPReturnFalse = "iap_ret_false";
 | ||
| 		
 | ||
| 		//横幅广告打点事件
 | ||
| 		public static readonly string EventBadsLoad = "bads_load";
 | ||
| 		public static readonly string EventBadsLoaded = "bads_loaded";
 | ||
| 		public static readonly string EventBadsFailed = "bads_failed";
 | ||
| 		public static readonly string EventBadsClick = "bads_clk";
 | ||
| 		public static readonly string EventBadsImp = "bads_imp";
 | ||
| 
 | ||
| 		//插屏广告打点事件
 | ||
| 		public static readonly string EventIadsLoad = "iads_load";
 | ||
| 		public static readonly string EventIadsLoaded = "iads_loaded";
 | ||
| 		public static readonly string EventIadsFailed = "iads_failed";
 | ||
| 		public static readonly string EventIadsImp = "iads_imp";
 | ||
| 		public static readonly string EventIadsClick = "iads_clk";
 | ||
| 		public static readonly string EventIadsClose = "iads_close";
 | ||
|     
 | ||
| 		//激励视频广告打点事件
 | ||
| 		public static readonly string EventRadsLoad = "rads_load";
 | ||
| 		public static readonly string EventRadsLoaded = "rads_loaded";
 | ||
| 		public static readonly string EventRadsFailed = "rads_failed";
 | ||
| 		public static readonly string EventRadsImp = "rads_imp";
 | ||
| 		public static readonly string EventRadsRewarded = "rads_rewarded";
 | ||
| 		public static readonly string EventRadsClick = "rads_clk";
 | ||
| 		public static readonly string EventRadsClose = "rads_close";
 | ||
| 		public static readonly string EventFirstRadsRewarded = "first_rads_rewarded";
 | ||
| 		
 | ||
| 		//广告收益打点事件
 | ||
| 		public static readonly string EventTchAdRev001Impression = "tch_ad_rev_roas_001";
 | ||
| 		public static readonly string EventTchAdRev02Impression = "tch_ad_rev_roas_02";
 | ||
| 		public static readonly string EventTchAdRevAbnormal = "tch_ad_rev_value_abnormal";
 | ||
| 		
 | ||
| 		//内购成功事件上报
 | ||
| 		public static readonly string EventIAPPurchase = "iap_purchase";
 | ||
| 		public static readonly string EventSubPurchase = "sub_purchase";
 | ||
| 		public static readonly string IAPStoreCategory = "Store";
 | ||
| 		public static readonly string IAPTypeProduct = "product";
 | ||
| 		public static readonly string IAPTypeSubscription = "subscription";
 | ||
| 		
 | ||
| 		//打点参数名
 | ||
| 		public static readonly string ParameterResult = "result";
 | ||
| 		public static readonly string ParameterStep = "step";
 | ||
| 		public static readonly string ParameterDuration = "duration";
 | ||
| 		public static readonly string ParameterErrorCode = "error_code";
 | ||
| 		public static readonly string ParameterProductId = "product_id";
 | ||
| 		public static readonly string ParameterPlatform = "platform";
 | ||
| 		public static readonly string ParameterStartType = "start_type"; // 游戏启动类型
 | ||
| 		public static readonly string ParameterReplay =  "replay"; // 游戏重玩
 | ||
| 		public static readonly string ParameterContinue = "continue"; // 游戏继续
 | ||
| 		
 | ||
| 		
 | ||
| 		// 评价参数
 | ||
| 		public static readonly string EventRateImp = "rate_imp"; // 评价弹窗展示
 | ||
| 		public static readonly string EventRateNow = "rate_now"; // 点击评分引导弹窗中的评分
 | ||
| 		
 | ||
| 		//打点内部执行错误
 | ||
| 		public static string ParameterEventError => "event_error";
 | ||
| 		
 | ||
| 		//ios ATT打点
 | ||
| 		public static readonly string ATTGuideShow = "att_guide_show";
 | ||
| 		public static readonly string ATTGuideOK = "att_guide_ok";
 | ||
| 		public static readonly string ATTWindowShow = "att_window_show";
 | ||
| 		public static readonly string ATTOptIn = "att_opt_in";
 | ||
| 		public static readonly string ATTOpOut = "att_opt_out";
 | ||
| 		public static readonly string ParameterATTStatus = "att_status";
 | ||
| 		public static readonly string EventATTResult = "att_result";
 | ||
| 		
 | ||
| 		// 用户属性
 | ||
| 		public static readonly string PropertyFirstOpenTime = "first_open_time"; 		//用户第一次first_open的时间
 | ||
| 		public static readonly string PropertyDeviceID = "device_id"; //用户的设备ID
 | ||
| 		public static readonly string PropertyUserID = "user_id";
 | ||
| 		public static readonly string PropertyLevel = "b_level"; //"每次完成通关上升一次,显示用户完成的最大关卡数。只针对主关卡和主玩法的局数做累加,初始值为0。"
 | ||
| 		public static readonly string PropertyPlay = "b_play"; //每完成一局或者游戏触发,
 | ||
| 		public static readonly string PropertyLastPlayedLevel = "last_played_level";
 | ||
| 		public static readonly string PropertyGrade = "grade"; //当游戏玩家角色升级时触发
 | ||
| 		public static readonly string PropertyIsIAPUser = "is_iap_user"; 		//付费成功后设置属性参数为true,如果没有发生付费可以不用设置该属性
 | ||
| 		public static readonly string PropertyIAPCoin = "iap_coin"; //付费所得的总金币数(iap获取累计值)\
 | ||
| 		public static readonly string PropertyNonIAPCoin = "noniap_coin"; //非付费iap获取累计值
 | ||
| 		public static readonly string PropertyCoin = "coin"; //当前金币数
 | ||
| 		public static readonly string PropertyExp = "exp"; // 经验值
 | ||
| 		public static readonly string PropertyHp = "hp"; // 生命值/体力
 | ||
| 		public static readonly string PropertyAndroidID = "android_id"; // Android 平台 AndroidID
 | ||
| 		public static readonly string PropertyIDFV = "idfv"; // iOS  平台 IDFV
 | ||
| 		public static readonly string PropertyPicture = "picture"; // 玩家在主线的mapid
 | ||
| 		public static readonly string PropertyNoAds = "no_ads"; // 玩家是否去广告
 | ||
| 		public static readonly string PropertyATTStatus = "att_status";  // ATT 状态
 | ||
| 		public static readonly string PropertyGDPR = "gdpr"; // GDPR状态
 | ||
| 		
 | ||
| 	}
 | ||
| } |