完成3.6.6数据统计需求(MTA) https://gitlab.ghzs.com/pm/halo-app-issues/issues/579 的补充部分

This commit is contained in:
chenjuntao
2019-07-29 15:23:12 +08:00
parent 1460e8cad3
commit 2f89ba9707
8 changed files with 45 additions and 19 deletions

View File

@ -38,6 +38,7 @@ import com.gh.common.util.DetailDownloadUtils;
import com.gh.common.util.DisplayUtils;
import com.gh.common.util.EntranceUtils;
import com.gh.common.util.GdtHelper;
import com.gh.common.util.MtaHelper;
import com.gh.common.util.ShareUtils;
import com.gh.common.view.VerticalItemDecoration;
import com.gh.download.DownloadManager;
@ -174,7 +175,7 @@ public class NewsDetailActivity extends BaseActivity implements OnClickListener,
* 启动新闻详情页面
*/
public static void startNewsDetailActivity(Context context, NewsEntity newsEntity, String entrance) {
DataUtils.onMtaEvent(context, "详情页面", "文章详情", newsEntity != null ? newsEntity.getTitle() : "");
MtaHelper.onEvent("详情页面", "文章详情", newsEntity != null ? newsEntity.getTitle() : "");
if (!TextUtils.isEmpty(newsEntity.getLink())) {
context.startActivity(WebActivity.getIntentByNews(context, newsEntity, entrance));
} else {
@ -192,7 +193,7 @@ public class NewsDetailActivity extends BaseActivity implements OnClickListener,
* 在收藏启动新闻详情页面
*/
public static void startNewsDetailByCollection(Context context, NewsEntity newsEntity, String entrance) {
DataUtils.onMtaEvent(context, "详情页面", "文章详情", newsEntity != null ? newsEntity.getTitle() : "");
MtaHelper.onEvent("详情页面", "文章详情", newsEntity != null ? newsEntity.getTitle() : "");
if (!TextUtils.isEmpty(newsEntity.getLink())) {
Intent intent = WebActivity.getIntentByNews(context, newsEntity, entrance);
context.startActivity(intent);
@ -505,7 +506,7 @@ public class NewsDetailActivity extends BaseActivity implements OnClickListener,
HistoryHelper.insertNewsEntity(mNewsEntity);
DataUtils.onMtaEvent(NewsDetailActivity.this, "详情页面", "文章详情", response.getTitle());
MtaHelper.onEvent("详情页面", "文章详情", response.getTitle());
}
@Override