Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
yh_analytics
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郁健超
2017-01-12 17:03:46 +0800
Commit
70173b370d057347b8c9dddd47aa2807c7c3362c
1 parent
1f4a7b8f
5.4埋点新增全局 参数 ABType review by 孟顺
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
YH_Analytics/YH_Analytics/YH_Analytics/YHAnalyticsMacro.h
YH_Analytics/YH_Analytics/YH_Analytics/YH_Analytics.h
YH_Analytics/YH_Analytics/YH_Analytics/YH_Analytics.m
YH_Analytics/YH_Analytics/YH_Analytics/YHAnalyticsMacro.h
View file @
70173b3
...
...
@@ -122,6 +122,7 @@
#define JsonKeyEventPARAM @"param" // 操作参数
#define JsonKeyEventINDEX @"indx" // 事件序号
#define JsonKeyEventCID @"C_ID" // 频道ID
#define JsonKeyEventAB_TYPE @"AB_TYPE" // ABTest测试类别
// 错误参数
#define JsonKeyErrorUID @"uid" // 用户id
...
...
YH_Analytics/YH_Analytics/YH_Analytics/YH_Analytics.h
View file @
70173b3
...
...
@@ -140,6 +140,12 @@ typedef NS_ENUM(NSInteger, YHLogStrategy) {
*/
@property
(
copy
,
nonatomic
)
NSString
*
cid
;
/**
@brief ABTest测试类别
@since 5.4
*/
@property
(
copy
,
nonatomic
)
NSString
*
ABType
;
/**
@brief td的设备id
*/
@property
(
copy
,
nonatomic
)
NSString
*
tdid
;
...
...
YH_Analytics/YH_Analytics/YH_Analytics/YH_Analytics.m
View file @
70173b3
...
...
@@ -274,6 +274,8 @@
NSMutableDictionary
*
params
=
[
NSMutableDictionary
dictionaryWithDictionary
:
param
];
[
params
setObject
:
self
.
cid
?:
@""
forKey
:
JsonKeyEventCID
];
[
params
setObject
:
self
.
ABType
?:
@""
forKey
:
JsonKeyEventAB_TYPE
];
event
.
param
=
params
;
// 立即发送策略
...
...
Please
register
or
login
to post a comment