From: Ben Soares Date: Wed, 14 Jun 2023 22:21:02 +0000 (+0100) Subject: JAL-4001 Trying to see extra information in GA dashboard X-Git-Tag: Release_2_11_4_0~265 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6d7f8d4aa0233a07520fe7c21645df8ae27e63ba;p=jalview.git JAL-4001 Trying to see extra information in GA dashboard --- diff --git a/src/jalview/analytics/GoogleAnalytics4.java b/src/jalview/analytics/GoogleAnalytics4.java index 031cfc2..d247662 100644 --- a/src/jalview/analytics/GoogleAnalytics4.java +++ b/src/jalview/analytics/GoogleAnalytics4.java @@ -37,6 +37,8 @@ public class GoogleAnalytics4 private static final String BASE_URL = "https://www.google-analytics.com/mp/collect"; + private static final String DESKTOP_EVENT = "desktop_event"; + private List> queryStringValues; private List> jsonObject; @@ -123,6 +125,8 @@ public class GoogleAnalytics4 return; } Map params = new HashMap<>(); + params.put("event_category", DESKTOP_EVENT); + params.put("event_label", eventName); // add these to all events from this application instance if (sendDefaultParams)