From 184bf3dce9500c599b5257140ec49edd80f8cea1 Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Mon, 30 Sep 2013 14:30:32 +0100 Subject: [PATCH] Google analytics receives message with actual Jabaws version --- webservices/compbio/ws/server/GAUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webservices/compbio/ws/server/GAUtils.java b/webservices/compbio/ws/server/GAUtils.java index 3bec5c7..858671c 100644 --- a/webservices/compbio/ws/server/GAUtils.java +++ b/webservices/compbio/ws/server/GAUtils.java @@ -72,7 +72,8 @@ public class GAUtils { } else { service_name = service.toString(); } - TRACKER.trackPageViewFromReferrer("JABAWS/2.0/" + service_name, service_name, "http://www.compbio.dundee.ac.uk", SERVER_ADDRESS, VERSION_TYPE); + String jabaws = "JABAWS/" + service.getJabawsVersion() + "/" + service_name; + TRACKER.trackPageViewFromReferrer(jabaws, service_name, "http://www.compbio.dundee.ac.uk", SERVER_ADDRESS, VERSION_TYPE); TRACKER.resetSession(); } @@ -83,7 +84,8 @@ public class GAUtils { } else { service_name = service.toString(); } - TRACKER.trackPageViewFromReferrer("JABAWS/2.0/" + service_name, service_name, "http://www.compbio.dundee.ac.uk", CLIENT_ADDRESS, VERSION_TYPE); + String jabaws = "JABAWS/" + service.getJabawsVersion() + "/" + service_name; + TRACKER.trackPageViewFromReferrer(jabaws, service_name, "http://www.compbio.dundee.ac.uk", CLIENT_ADDRESS, VERSION_TYPE); TRACKER.resetSession(); } -- 1.7.10.2