埋点配置
This commit is contained in:
@@ -334,7 +334,21 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
|
||||
@Override
|
||||
public void onPageSelected(int position) {
|
||||
|
||||
switch (position) {
|
||||
case 0:
|
||||
//点击埋点
|
||||
MobclickAgent.onEvent(mContext, "home_page", "首页");
|
||||
break;
|
||||
case 1:
|
||||
MobclickAgent.onEvent(mContext, "community", "社区");
|
||||
break;
|
||||
case 2:
|
||||
MobclickAgent.onEvent(mContext, "information", "消息");
|
||||
break;
|
||||
case 3:
|
||||
MobclickAgent.onEvent(mContext, "my", "我的");
|
||||
break;
|
||||
}
|
||||
if (mTabButtonGroup.getCurPosition() != position) {
|
||||
System.err.println("重连IM:" + IMLoginManager.isLogin(mContext));
|
||||
if (!IMLoginManager.isLogin(mContext)) {
|
||||
@@ -715,6 +729,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
int i = v.getId();
|
||||
if (i == R.id.btn_start) {
|
||||
showStartDialog();
|
||||
MobclickAgent.onEvent(mContext, "broadcast", "开播按钮");
|
||||
} else if (i == R.id.btn_search) {
|
||||
SearchActivity.forward(mContext);
|
||||
|
||||
@@ -1082,21 +1097,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
ToastUtil.showDebug("Holders为空");
|
||||
return;
|
||||
}
|
||||
switch (position) {
|
||||
case 0:
|
||||
//点击埋点
|
||||
MobclickAgent.onEvent(mContext, "home_page", "首页");
|
||||
break;
|
||||
case 1:
|
||||
MobclickAgent.onEvent(mContext, "community", "社区");
|
||||
break;
|
||||
case 2:
|
||||
MobclickAgent.onEvent(mContext, "information", "消息");
|
||||
break;
|
||||
case 3:
|
||||
MobclickAgent.onEvent(mContext, "my", "我的");
|
||||
break;
|
||||
}
|
||||
|
||||
AbsMainViewHolder vh = mViewHolders[position];
|
||||
if (vh == null) {
|
||||
if (mViewList != null && position < mViewList.size()) {
|
||||
|
||||
@@ -141,6 +141,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
ViewClicksAntiShake.clicksAntiShake(gift_svga, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@Override
|
||||
public void onViewClicks() {
|
||||
MobclickAgent.onEvent(mContext, "my_avatar", "个人头像按钮");
|
||||
RouteUtil.forwardUserHome(mContext, CommonAppConfig.getInstance().getUid(), 2);
|
||||
}
|
||||
});
|
||||
@@ -465,6 +466,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
//跳转网页版粉丝徽章
|
||||
WebViewActivityMedal.forward(mContext, url);
|
||||
} else if (bean.getId() == 5) {
|
||||
MobclickAgent.onEvent(mContext, "my_decorate", "个人中心点装扮");
|
||||
Constants.isTitle = true;
|
||||
ZhuangBanActivity.forward(mContext, CommonAppConfig.HOST + "/h5/Personality.html");
|
||||
} else if (bean.getId() == 23) { //獎勵中心
|
||||
@@ -486,6 +488,9 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
}
|
||||
if (bean.getId() == 25){
|
||||
MobclickAgent.onEvent(mContext, "my_friend_invitation", "个人中心点好友邀请");
|
||||
}
|
||||
if (bean.getId() == 24){
|
||||
MobclickAgent.onEvent(mContext, "my_pack", "个人中心点包裹");
|
||||
}
|
||||
WebViewActivity.forward(mContext, url, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user