埋点配置
This commit is contained in:
parent
7a31ca52da
commit
72e9633045
@ -79,9 +79,7 @@ public class FunGamesViewHolder extends RecyclerView.ViewHolder {
|
|||||||
.append("&token=")
|
.append("&token=")
|
||||||
.append(userInfo.getToken());
|
.append(userInfo.getToken());
|
||||||
}
|
}
|
||||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
|
||||||
map_ekv.put("link", htmlUrl.toString());
|
|
||||||
MobclickAgent.onEvent(itemView.getContext(), "live_room_slide", map_ekv);
|
|
||||||
Bus.get().post(new CustomDrawerPopupEvent()
|
Bus.get().post(new CustomDrawerPopupEvent()
|
||||||
.setDisMiss(true)
|
.setDisMiss(true)
|
||||||
.setHtmlUrl(htmlUrl.toString())
|
.setHtmlUrl(htmlUrl.toString())
|
||||||
|
@ -159,7 +159,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
|||||||
Log.i(TAG, "onScrolled: " + dy);
|
Log.i(TAG, "onScrolled: " + dy);
|
||||||
mRecyclerViewScrolledDy = dy;
|
mRecyclerViewScrolledDy = dy;
|
||||||
isBottom = false;
|
isBottom = false;
|
||||||
MobclickAgent.onEvent(mContext, "live_room_chat_list", "滑动直播间聊天列表");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -50,7 +50,9 @@ import com.yunbao.live.activity.LiveRyAnchorActivity;
|
|||||||
import org.greenrobot.eventbus.Subscribe;
|
import org.greenrobot.eventbus.Subscribe;
|
||||||
import org.greenrobot.eventbus.ThreadMode;
|
import org.greenrobot.eventbus.ThreadMode;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 趣味游戏对话框
|
* 趣味游戏对话框
|
||||||
@ -253,6 +255,9 @@ public class LiveGameDialogFragment extends AbsDialogFragment {
|
|||||||
if (tab != null) {
|
if (tab != null) {
|
||||||
tab.select();
|
tab.select();
|
||||||
ActiveModel model = (ActiveModel) tab.getTag();
|
ActiveModel model = (ActiveModel) tab.getTag();
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("link", model.getActiveSrc());
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_slide", map_ekv);
|
||||||
switch (model.getActiveName()) {
|
switch (model.getActiveName()) {
|
||||||
case "闖關熱戀":
|
case "闖關熱戀":
|
||||||
MobclickAgent.onEvent(mContext, "through_index", "进入闯关页面");
|
MobclickAgent.onEvent(mContext, "through_index", "进入闯关页面");
|
||||||
|
@ -183,7 +183,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_cheat), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_cheat), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
MobclickAgent.onEvent(mContext, "live_room_h5_game", "直播间任意点用户头像");
|
MobclickAgent.onEvent(mContext, "live_room_h5_game", "直播间下面鼓掌按钮");
|
||||||
Bus.get().post(new LiveAudienceEvent()
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.WE_CHEAT));
|
.setType(LiveAudienceEvent.LiveAudienceType.WE_CHEAT));
|
||||||
|
|
||||||
|
@ -1799,9 +1799,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
.append(System.currentTimeMillis())
|
.append(System.currentTimeMillis())
|
||||||
.append("&isZh=")
|
.append("&isZh=")
|
||||||
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
|
||||||
map_ekv.put("link", htmlUrl.toString());
|
|
||||||
MobclickAgent.onEvent(mContext, "live_room_star", map_ekv);
|
|
||||||
} else {
|
} else {
|
||||||
type = bean.getShow_type();
|
type = bean.getShow_type();
|
||||||
htmlUrl.append(bean.getLink())
|
htmlUrl.append(bean.getLink())
|
||||||
@ -1816,6 +1813,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
.append("&isZh=")
|
.append("&isZh=")
|
||||||
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||||
}
|
}
|
||||||
|
if (htmlUrl.toString().contains("StarChallenge")){
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("link", htmlUrl.toString());
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_star", map_ekv);
|
||||||
|
}
|
||||||
if (TextUtils.equals(type, "1")) {
|
if (TextUtils.equals(type, "1")) {
|
||||||
ZhuangBanActivity.forward(mContext, htmlUrl.toString(), false, 1);
|
ZhuangBanActivity.forward(mContext, htmlUrl.toString(), false, 1);
|
||||||
} else {
|
} else {
|
||||||
@ -1865,6 +1867,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
.append(System.currentTimeMillis())
|
.append(System.currentTimeMillis())
|
||||||
.append("&isZh=")
|
.append("&isZh=")
|
||||||
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
type = bean.getShow_type();
|
type = bean.getShow_type();
|
||||||
htmlUrl.append(bean.getLink())
|
htmlUrl.append(bean.getLink())
|
||||||
@ -1882,6 +1885,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
.append("&isZh=")
|
.append("&isZh=")
|
||||||
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||||
}
|
}
|
||||||
|
if (htmlUrl.toString().contains("StarChallenge")){
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("link", htmlUrl.toString());
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_star", map_ekv);
|
||||||
|
}
|
||||||
if (TextUtils.equals(type, "1")) {
|
if (TextUtils.equals(type, "1")) {
|
||||||
ZhuangBanActivity.forward(mContext, htmlUrl.toString(), false, 1);
|
ZhuangBanActivity.forward(mContext, htmlUrl.toString(), false, 1);
|
||||||
} else {
|
} else {
|
||||||
@ -2284,8 +2292,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
initPkRankView(bean);
|
initPkRankView(bean);
|
||||||
if (!StringUtil.isEmpty(bean.getClickUrl())) {
|
if (!StringUtil.isEmpty(bean.getClickUrl())) {
|
||||||
|
|
||||||
MobclickAgent.onEvent(mContext, "live_room_sky", "天梯赛按钮");
|
|
||||||
pkRankVf.setOnClickListener(v -> {
|
pkRankVf.setOnClickListener(v -> {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_sky", "天梯赛按钮");
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
String path = bean.getClickUrl();
|
String path = bean.getClickUrl();
|
||||||
if (!path.startsWith("/") && !path.startsWith("http")) {
|
if (!path.startsWith("/") && !path.startsWith("http")) {
|
||||||
@ -4129,7 +4138,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBannerClick(List datas, int p) {
|
public void onBannerClick(List datas, int p) {
|
||||||
if (TextUtils.equals("特惠首充", mBannerList4.get(p).getName())){
|
if (TextUtils.equals("特惠首冲", mBannerList4.get(p).getName())){
|
||||||
|
|
||||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
map_ekv.put("link", mBannerList4.get(p).getLink());
|
map_ekv.put("link", mBannerList4.get(p).getLink());
|
||||||
|
@ -276,6 +276,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
@Override
|
@Override
|
||||||
public synchronized void onAdd(LiveBean data, int liveType, int liveTypeVal, int liveSdk) {
|
public synchronized void onAdd(LiveBean data, int liveType, int liveTypeVal, int liveSdk) {
|
||||||
isEnterRoom = false;
|
isEnterRoom = false;
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_chat_list", "滑动直播间聊天列表");
|
||||||
openParametersModel = new OpenParametersModel();
|
openParametersModel = new OpenParametersModel();
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
mLiveRoomViewHolder.UpPkTwo();
|
mLiveRoomViewHolder.UpPkTwo();
|
||||||
|
@ -334,7 +334,21 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPageSelected(int position) {
|
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) {
|
if (mTabButtonGroup.getCurPosition() != position) {
|
||||||
System.err.println("重连IM:" + IMLoginManager.isLogin(mContext));
|
System.err.println("重连IM:" + IMLoginManager.isLogin(mContext));
|
||||||
if (!IMLoginManager.isLogin(mContext)) {
|
if (!IMLoginManager.isLogin(mContext)) {
|
||||||
@ -715,6 +729,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
int i = v.getId();
|
int i = v.getId();
|
||||||
if (i == R.id.btn_start) {
|
if (i == R.id.btn_start) {
|
||||||
showStartDialog();
|
showStartDialog();
|
||||||
|
MobclickAgent.onEvent(mContext, "broadcast", "开播按钮");
|
||||||
} else if (i == R.id.btn_search) {
|
} else if (i == R.id.btn_search) {
|
||||||
SearchActivity.forward(mContext);
|
SearchActivity.forward(mContext);
|
||||||
|
|
||||||
@ -1082,21 +1097,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
ToastUtil.showDebug("Holders为空");
|
ToastUtil.showDebug("Holders为空");
|
||||||
return;
|
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];
|
AbsMainViewHolder vh = mViewHolders[position];
|
||||||
if (vh == null) {
|
if (vh == null) {
|
||||||
if (mViewList != null && position < mViewList.size()) {
|
if (mViewList != null && position < mViewList.size()) {
|
||||||
|
@ -141,6 +141,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
ViewClicksAntiShake.clicksAntiShake(gift_svga, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(gift_svga, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_avatar", "个人头像按钮");
|
||||||
RouteUtil.forwardUserHome(mContext, CommonAppConfig.getInstance().getUid(), 2);
|
RouteUtil.forwardUserHome(mContext, CommonAppConfig.getInstance().getUid(), 2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -465,6 +466,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
//跳转网页版粉丝徽章
|
//跳转网页版粉丝徽章
|
||||||
WebViewActivityMedal.forward(mContext, url);
|
WebViewActivityMedal.forward(mContext, url);
|
||||||
} else if (bean.getId() == 5) {
|
} else if (bean.getId() == 5) {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_decorate", "个人中心点装扮");
|
||||||
Constants.isTitle = true;
|
Constants.isTitle = true;
|
||||||
ZhuangBanActivity.forward(mContext, CommonAppConfig.HOST + "/h5/Personality.html");
|
ZhuangBanActivity.forward(mContext, CommonAppConfig.HOST + "/h5/Personality.html");
|
||||||
} else if (bean.getId() == 23) { //獎勵中心
|
} else if (bean.getId() == 23) { //獎勵中心
|
||||||
@ -486,6 +488,9 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
}
|
}
|
||||||
if (bean.getId() == 25){
|
if (bean.getId() == 25){
|
||||||
MobclickAgent.onEvent(mContext, "my_friend_invitation", "个人中心点好友邀请");
|
MobclickAgent.onEvent(mContext, "my_friend_invitation", "个人中心点好友邀请");
|
||||||
|
}
|
||||||
|
if (bean.getId() == 24){
|
||||||
|
MobclickAgent.onEvent(mContext, "my_pack", "个人中心点包裹");
|
||||||
}
|
}
|
||||||
WebViewActivity.forward(mContext, url, false);
|
WebViewActivity.forward(mContext, url, false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user