浏览代码

- 컨텐츠상세 카테고리 진입 라벨 세분화

yeongyun 6 年之前
父节点
当前提交
dd17802b37

+ 2 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/helper/GoogleAnalyticsHelper.java

@@ -82,6 +82,8 @@ public class GoogleAnalyticsHelper extends Helper {
         public static final String MAIN = "메인";
         public static final String SEARCH = "검색";
         public static final String CATEGORY = "카테고리";
+        public static final String CATEGORY_BANNER = "카테고리배너";
+        public static final String RECOMMEND_CONTENTS = "추천컨텐츠";
         public static final String BOOKMARK = "북마크";
         public static final String SERIES = "시리즈";
         public static final String WITH = "함께";

+ 10 - 4
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/category/CategoryMainPresenter.java

@@ -167,9 +167,6 @@ public abstract class CategoryMainPresenter<M extends CategoryMainModel, V exten
                     }
                     gotoEvent(flagContentsBean);
                 } else {
-                    if (flagContentsBean != null) {
-                        googleAnalyticsHelper.sendGA(GoogleAnalyticsHelper.Category.CONTENTS_DETAIL, GoogleAnalyticsHelper.Label.CATEGORY, flagContentsBean.getTitle());
-                    }
                     String itemNumber = model.getSelectedRecommendBean().getItemNo();
                     Log.i("APP# CategoryMainPresenter | onEventInternal", "|" + "recommended item number: " + itemNumber);
                     model.loadDetail(itemNumber);
@@ -208,7 +205,13 @@ public abstract class CategoryMainPresenter<M extends CategoryMainModel, V exten
             gotoEvent(flagContentsBean);
         } else {
             if (flagContentsBean != null) {
-                googleAnalyticsHelper.sendGA(GoogleAnalyticsHelper.Category.CONTENTS_DETAIL, GoogleAnalyticsHelper.Label.CATEGORY, flagContentsBean.getTitle());
+                String label;
+                if(type == R.string.fa_type_banner) {
+                    label = GoogleAnalyticsHelper.Label.CATEGORY_BANNER;
+                } else {
+                    label = GoogleAnalyticsHelper.Label.CATEGORY;
+                }
+                googleAnalyticsHelper.sendGA(GoogleAnalyticsHelper.Category.CONTENTS_DETAIL, label, flagContentsBean.getTitle());
             }
             setContentsHelper(flagContentsBean);
 
@@ -304,6 +307,9 @@ public abstract class CategoryMainPresenter<M extends CategoryMainModel, V exten
                     } else {
                         Log.w("APP# CategoryMainPresenter | onResult", "|" + " contents             --> ");
 
+                        if (model != null && model.getSelectedRecommendBean() != null) {
+                            googleAnalyticsHelper.sendGA(GoogleAnalyticsHelper.Category.CONTENTS_DETAIL, GoogleAnalyticsHelper.Label.RECOMMEND_CONTENTS, model.getSelectedRecommendBean().getTitle());
+                        }
                         setContentsHelper(model.getSelectedRecommendBean());
 
                         go(ScreenID.CONTENTS);