Google analytics receives message with actual Jabaws version
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Mon, 30 Sep 2013 13:30:32 +0000 (14:30 +0100)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Mon, 30 Sep 2013 13:30:32 +0000 (14:30 +0100)
webservices/compbio/ws/server/GAUtils.java

index 3bec5c7..858671c 100644 (file)
@@ -72,7 +72,8 @@ public class GAUtils {
                } else {\r
                        service_name = service.toString();\r
                }\r
-               TRACKER.trackPageViewFromReferrer("JABAWS/2.0/" + service_name, service_name, "http://www.compbio.dundee.ac.uk", SERVER_ADDRESS, VERSION_TYPE);\r
+               String jabaws = "JABAWS/" + service.getJabawsVersion() + "/" + service_name;\r
+               TRACKER.trackPageViewFromReferrer(jabaws, service_name, "http://www.compbio.dundee.ac.uk", SERVER_ADDRESS, VERSION_TYPE);\r
                TRACKER.resetSession();\r
        }\r
 \r
@@ -83,7 +84,8 @@ public class GAUtils {
                } else {\r
                        service_name = service.toString();\r
                }\r
-               TRACKER.trackPageViewFromReferrer("JABAWS/2.0/" + service_name, service_name, "http://www.compbio.dundee.ac.uk", CLIENT_ADDRESS, VERSION_TYPE);\r
+               String jabaws = "JABAWS/" + service.getJabawsVersion() + "/" + service_name;\r
+               TRACKER.trackPageViewFromReferrer(jabaws, service_name, "http://www.compbio.dundee.ac.uk", CLIENT_ADDRESS, VERSION_TYPE);\r
                TRACKER.resetSession();\r
        }\r
 \r