埋点配置
This commit is contained in:
@@ -453,6 +453,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
|
||||
@Override
|
||||
public void onNext(Unit unit) {
|
||||
MobclickAgent.onEvent(mContext, "home_page_to_recommend", "首页点击右下角去推荐直播间按钮");
|
||||
String Uid = floatBanner.getUid();
|
||||
LiveHttpUtil.getLiveInfo(Uid + "", new HttpCallback() {
|
||||
@Override
|
||||
@@ -1453,6 +1454,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
title.setImageResource(R.mipmap.icon_red_packet_float_text_en);
|
||||
}
|
||||
floatRedPacket.setOnClickListener(v -> {
|
||||
MobclickAgent.onEvent(mContext, "home_page_to_redpk", "首页点击右下角去红包专区");
|
||||
mainHomeViewHolder.setCurPosition(3);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -101,7 +101,6 @@ public class MainListActivity extends AbsActivity implements OnItemClickListener
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
MobclickAgent.onPageStart("MainListActivity");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -313,7 +312,6 @@ public class MainListActivity extends AbsActivity implements OnItemClickListener
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
MobclickAgent.onPageEnd("MainListActivity");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.android.billingclient.api.BillingResult;
|
||||
import com.android.billingclient.api.Purchase;
|
||||
import com.android.billingclient.api.PurchasesResponseListener;
|
||||
import com.umeng.analytics.MobclickAgent;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.activity.AbsActivity;
|
||||
import com.yunbao.common.fragment.LoadingDialog;
|
||||
@@ -162,6 +163,13 @@ public class MyWalletActivity extends AbsActivity {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
vp_content.setCurrentItem(index);
|
||||
if (index==0){
|
||||
MobclickAgent.onEvent(mContext, "recharge_zs", "用户在充值页面选择左右切换到钻石或者点到钻石");
|
||||
}else if (index==1){
|
||||
MobclickAgent.onEvent(mContext, "recharge_xb", "用户在充值页面选择左右切换到星币或者点到星币");
|
||||
}else if (index==2){
|
||||
MobclickAgent.onEvent(mContext, "recharge_jd", "用户在充值页面选择左右切换到金豆或者点到金豆");
|
||||
}
|
||||
}
|
||||
});
|
||||
return colorTransitionPagerTitleView;
|
||||
|
||||
@@ -599,4 +599,10 @@ public class MyWebViewActivity extends AbsActivity {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,12 +224,10 @@ public class SearchActivity extends AbsActivity {
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
MobclickAgent.onPageEnd("SearchActivity");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
MobclickAgent.onPageStart("SearchActivity");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ import android.widget.LinearLayout;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.umeng.analytics.MobclickAgent;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.CommonAppContext;
|
||||
import com.yunbao.common.Constants;
|
||||
@@ -268,10 +269,12 @@ public class MainStartDialogFragment extends AbsDialogFragment implements View.O
|
||||
if (i == R.id.btn_close) {
|
||||
} else if (i == R.id.btn_live) {
|
||||
if (mCallback != null) {
|
||||
MobclickAgent.onEvent(mContext, "home_page_broadcast", "点击开播按钮");
|
||||
mCallback.onLiveClick();
|
||||
}
|
||||
} else if (i == R.id.btn_video) {
|
||||
if (mCallback != null) {
|
||||
MobclickAgent.onEvent(mContext, "home_page_post", "点击发动态按钮");
|
||||
mCallback.onVideoClick();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -452,7 +452,7 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
map_ekv.put("link", link);
|
||||
MobclickAgent.onEvent(mContext, "ome_page_recommend_banner", map_ekv);
|
||||
MobclickAgent.onEvent(mContext, "home_page_recommend_banner", map_ekv);
|
||||
|
||||
if (link.contains("http")) {
|
||||
WebViewActivity.forward(mContext, link, true, false);
|
||||
|
||||
@@ -27,6 +27,7 @@ import com.opensource.svgaplayer.SVGADrawable;
|
||||
import com.opensource.svgaplayer.SVGAImageView;
|
||||
import com.opensource.svgaplayer.SVGAParser;
|
||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||
import com.umeng.analytics.MobclickAgent;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.CommonAppContext;
|
||||
import com.yunbao.common.Constants;
|
||||
@@ -74,8 +75,10 @@ import org.greenrobot.eventbus.EventBus;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Created by cxf on 2018/9/22.
|
||||
@@ -127,6 +130,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
ViewClicksAntiShake.clicksAntiShake(mAvatar, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@Override
|
||||
public void onViewClicks() {
|
||||
MobclickAgent.onEvent(mContext, "my_avatar", "个人头像按钮");
|
||||
RouteUtil.forwardUserHome(mContext, CommonAppConfig.getInstance().getUid(), 2);
|
||||
}
|
||||
});
|
||||
@@ -358,6 +362,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
tv_level.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
MobclickAgent.onEvent(mContext, "my_top_level", "个人中心最上面的等级");
|
||||
String url = CommonAppConfig.HOST + "/h5/Grade/index.html?" + "token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&for";
|
||||
ZhuangBanActivity.forward(mContext, url);
|
||||
}
|
||||
@@ -373,6 +378,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
tv_level.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
MobclickAgent.onEvent(mContext, "my_top_level", "个人中心最上面的等级");
|
||||
String url = CommonAppConfig.HOST + "/h5/Grade/index.html?" + "token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&isZh=" + ((IMLoginManager.get(CommonAppContext.sInstance.getBaseContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0");
|
||||
ZhuangBanActivity.forward(mContext, url);
|
||||
}
|
||||
@@ -434,6 +440,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
forwardProfit();
|
||||
break;
|
||||
case 2:
|
||||
MobclickAgent.onEvent(mContext, "my_wallet", "个人中心点钱包");
|
||||
forwardCoin();
|
||||
break;
|
||||
case 13:
|
||||
@@ -443,6 +450,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
forwardMyVideo();
|
||||
break;
|
||||
case 20:
|
||||
MobclickAgent.onEvent(mContext, "my_room", "个人中心点房间管理");
|
||||
forwardRoomManage();
|
||||
break;
|
||||
}
|
||||
@@ -453,22 +461,32 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
ThreeDistributActivity.forward(mContext, bean.getName(), url);
|
||||
} else {
|
||||
if (bean.getId() == 31) {
|
||||
MobclickAgent.onEvent(mContext, "my_medal", "个人中心点勋章");
|
||||
//跳转网页版粉丝徽章
|
||||
WebViewActivityMedal.forward(mContext, url);
|
||||
} else if (bean.getId() == 5) {
|
||||
Constants.isTitle = true;
|
||||
ZhuangBanActivity.forward(mContext, CommonAppConfig.HOST + "/h5/Personality.html");
|
||||
} else if (bean.getId() == 23) { //獎勵中心
|
||||
MobclickAgent.onEvent(mContext, "my_award", "獎勵中心");
|
||||
Log.i("tsa", url);
|
||||
RewardActivity.forward(mContext, url);
|
||||
} else if (bean.getId() == 4) {
|
||||
|
||||
url = HtmlConfig.SHOP + "?t=" + Math.random() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&isZh=" + ((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0");
|
||||
WebViewActivity.forward(mContext, url, false);
|
||||
} else if (bean.getId() == 3) {//我的等级
|
||||
MobclickAgent.onEvent(mContext, "my_level", "个人中心点我的等级");
|
||||
Constants.myIntoIndex = 2;
|
||||
Constants.isTitle = false;
|
||||
ZhuangBanActivity.forward(mContext, url);
|
||||
} else {
|
||||
if (bean.getId() == 11){
|
||||
MobclickAgent.onEvent(mContext, "my_anchor", "个人中心点主播中心");
|
||||
}
|
||||
if (bean.getId() == 25){
|
||||
MobclickAgent.onEvent(mContext, "my_friend_invitation", "个人中心点好友邀请");
|
||||
}
|
||||
WebViewActivity.forward(mContext, url, false);
|
||||
}
|
||||
|
||||
@@ -486,10 +504,17 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
} else if (i == R.id.signature) {
|
||||
mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
||||
} else if (i == R.id.lt_star_coin) {
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
map_ekv.put("from", "xb");
|
||||
MobclickAgent.onEvent(mContext, "my_recharge", map_ekv);
|
||||
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 1));
|
||||
} else if (i == R.id.btn_coin) {
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
map_ekv.put("from", "zs");
|
||||
MobclickAgent.onEvent(mContext, "my_recharge", map_ekv);
|
||||
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 0));
|
||||
} else if (i == R.id.btn_gold) {
|
||||
MobclickAgent.onEvent(mContext, "my_receive", "充值旁边领取金豆的按钮");
|
||||
// mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 2));
|
||||
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=task&a=index";
|
||||
RewardActivity.forward(mContext, url);
|
||||
@@ -498,6 +523,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
} else if (i == R.id.rt_setting) {
|
||||
forwardSetting();
|
||||
} else if (i == R.id.lt_noble) {
|
||||
MobclickAgent.onEvent(mContext, "my_noble", "个人中心点贵族");
|
||||
Constants.isTitle = true;
|
||||
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
||||
String url = CommonAppConfig.HOST + "/h5/Noble/index.html?nickname=" + u.getUserNiceName() + "&usernobId=" + u.getNoble_id() + "&token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid();
|
||||
@@ -595,6 +621,11 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
Constants.isTitle = true;
|
||||
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken();
|
||||
WebViewActivity.forward(mContext, url, false, false);
|
||||
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
map_ekv.put("link", url);
|
||||
MobclickAgent.onEvent(mContext, "my_banner", map_ekv);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -616,6 +647,11 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
Constants.isTitle = true;
|
||||
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken();
|
||||
RouteUtil.forwardCustomerService(url);
|
||||
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
map_ekv.put("link", url);
|
||||
MobclickAgent.onEvent(mContext, "my_banner", map_ekv);
|
||||
|
||||
/*if(bean.getSlide_id().equals("95")){
|
||||
RouteUtil.forwardCustomerService(url);
|
||||
}else {
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.opensource.svgaplayer.SVGADrawable;
|
||||
import com.opensource.svgaplayer.SVGAImageView;
|
||||
import com.opensource.svgaplayer.SVGAParser;
|
||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||
import com.umeng.analytics.MobclickAgent;
|
||||
import com.yunbao.common.bean.ImUserInfoModel;
|
||||
import com.yunbao.common.bean.LiveBean;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
@@ -233,6 +234,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
||||
}
|
||||
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsNotice);
|
||||
ViewClicksAntiShake.clicksAntiShake(imgNewsNotice, () -> {
|
||||
MobclickAgent.onEvent(mContext, "information_official_notice", "官方通知");
|
||||
type = userBean.getType();
|
||||
netHandler.post(systemNumberRunnable);
|
||||
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
||||
@@ -252,6 +254,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
||||
}
|
||||
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsInteraction);
|
||||
ViewClicksAntiShake.clicksAntiShake(imgNewsInteraction, () -> {
|
||||
MobclickAgent.onEvent(mContext, "information_system_interactive", "互動消息");
|
||||
type = userBean.getType();
|
||||
netHandler.post(systemNumberRunnable);
|
||||
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
||||
@@ -271,6 +274,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
||||
}
|
||||
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsOnline);
|
||||
ViewClicksAntiShake.clicksAntiShake(imgNewsOnline, () -> {
|
||||
MobclickAgent.onEvent(mContext, "information_system_service", "在線客服");
|
||||
type = userBean.getType();
|
||||
netHandler.post(systemNumberRunnable);
|
||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||
@@ -297,6 +301,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
||||
}
|
||||
ImgLoader.display(mContext, userBean.getNewImage(), imgSystemMessages);
|
||||
ViewClicksAntiShake.clicksAntiShake(imgSystemMessages, () -> {
|
||||
MobclickAgent.onEvent(mContext, "information_system_notice", "系统消息");
|
||||
type = userBean.getType();
|
||||
netHandler.post(systemNumberRunnable);
|
||||
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
||||
|
||||
Reference in New Issue
Block a user