From febc11d7dc0db563aae540116dae70f1ee660486 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 15 Jan 2012 14:32:41 +0100 Subject: [PATCH] Add download index --- .../osmand/plus/activities/DownloadIndexActivity.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java b/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java index eafb96f18e..f676fdf619 100644 --- a/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java @@ -135,7 +135,7 @@ public class DownloadIndexActivity extends ExpandableListActivity { // Start the tracker in manual dispatch mode... tracker.startNewSession(getString(R.string.ga_api_key), 60, this); setCustomVarsToTracker(); - tracker.trackPageView("/download.activity"); + tracker.trackPageView("/download.activity?" +Version.getVersionAsURLParam()); downloadFileHelper = new DownloadFileHelper(this); findViewById(R.id.DownloadButton).setOnClickListener(new View.OnClickListener(){ @@ -344,8 +344,14 @@ public class DownloadIndexActivity extends ExpandableListActivity { case DIALOG_PROGRESS_FILE: DownloadIndexesAsyncTask task = new DownloadIndexesAsyncTask(new ProgressDialogImplementation(progressFileDlg,true)); String[] indexes = entriesToDownload.keySet().toArray(new String[0]); + String v = Version.APP_NAME_VERSION; + if(Version.APP_DESCRIPTION.equals("beta")){ + v +="beta"; + } else { + v +="test"; + } for(String index : indexes) { - tracker.trackEvent("Downloads", Version.APP_NAME, index, 1); + tracker.trackEvent(v, Version.APP_NAME, index, 1); } task.execute(indexes); break;