From 66e2727acbb76cfeac943e4f94e94fabd478544a Mon Sep 17 00:00:00 2001 From: seven332 Date: Sat, 14 Jun 2014 02:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=98=85=E8=AF=BB=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/hippo/ehviewer/ui/MangaDetailActivity.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/com/hippo/ehviewer/ui/MangaDetailActivity.java b/src/com/hippo/ehviewer/ui/MangaDetailActivity.java index 8e30f00a6..a3cd92f38 100644 --- a/src/com/hippo/ehviewer/ui/MangaDetailActivity.java +++ b/src/com/hippo/ehviewer/ui/MangaDetailActivity.java @@ -18,6 +18,8 @@ import java.util.List; +import com.google.analytics.tracking.android.EasyTracker; +import com.google.analytics.tracking.android.MapBuilder; import com.hippo.ehviewer.AppContext; import com.hippo.ehviewer.R; import com.hippo.ehviewer.data.Comment; @@ -112,6 +114,16 @@ private void handleIntent(Intent intent) { } else { mGalleryInfo = intent.getParcelableExtra(KEY_G_INFO); } + + if (Config.getAllowAnalyics()) { + EasyTracker easyTracker = EasyTracker.getInstance(this); + easyTracker.send(MapBuilder + .createEvent("detail", + "open", + "{\"gid\":" + mGalleryInfo.gid + ",\"token\":" + mGalleryInfo.token +"}", + null) + .build()); + } } @Override