Commit 0177d532 authored by shenpc's avatar shenpc

增加统计

parent 21b79b27
...@@ -130,6 +130,10 @@ public final class OutHelp implements KPListener { ...@@ -130,6 +130,10 @@ public final class OutHelp implements KPListener {
if (DataManager.get().checkOutOpen(mContext)) { if (DataManager.get().checkOutOpen(mContext)) {
//第一次加载广告 //第一次加载广告
OutAdManager.get().checkNeedLoadAd(ActionFrom.ACTION_UNKNOWN); OutAdManager.get().checkNeedLoadAd(ActionFrom.ACTION_UNKNOWN);
} else {
Map<String, String> map = new HashMap<>();
map.put("position", "init");
Statistics.getInstance().dotEvent("out_close", map);
} }
} }
...@@ -149,7 +153,9 @@ public final class OutHelp implements KPListener { ...@@ -149,7 +153,9 @@ public final class OutHelp implements KPListener {
@Override @Override
public void run() { public void run() {
if (!DataManager.get().checkOutOpen(mContext)) { if (!DataManager.get().checkOutOpen(mContext)) {
Statistics.getInstance().dotEvent("out_close"); Map<String, String> map = new HashMap<>();
map.put("position", "time");
Statistics.getInstance().dotEvent("out_close", map);
LogUtil.d(TAG + "外展未开启,不轮询检测"); LogUtil.d(TAG + "外展未开启,不轮询检测");
return; return;
} }
...@@ -235,7 +241,9 @@ public final class OutHelp implements KPListener { ...@@ -235,7 +241,9 @@ public final class OutHelp implements KPListener {
*/ */
public void receiverAction(String actionName) { public void receiverAction(String actionName) {
if (!DataManager.get().checkOutOpen(mContext)) { if (!DataManager.get().checkOutOpen(mContext)) {
Statistics.getInstance().dotEvent("out_close"); Map<String, String> map = new HashMap<>();
map.put("position", "rc_app");
Statistics.getInstance().dotEvent("out_close", map);
LogUtil.d(TAG + "外展未开启,不接收广播"); LogUtil.d(TAG + "外展未开启,不接收广播");
return; return;
} }
...@@ -614,7 +622,9 @@ public final class OutHelp implements KPListener { ...@@ -614,7 +622,9 @@ public final class OutHelp implements KPListener {
if (!DataManager.get().checkOutOpen(context)) { if (!DataManager.get().checkOutOpen(context)) {
LogUtil.d(TAG + "外展未开启,不接收广播"); LogUtil.d(TAG + "外展未开启,不接收广播");
Statistics.getInstance().dotEvent("out_close"); Map<String, String> map = new HashMap<>();
map.put("position", "rc_dx");
Statistics.getInstance().dotEvent("out_close", map);
return; return;
} }
Statistics.getInstance().dotEvent("out_open"); Statistics.getInstance().dotEvent("out_open");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment