From 6d7f8d4aa0233a07520fe7c21645df8ae27e63ba Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 14 Jun 2023 23:21:02 +0100 Subject: [PATCH] JAL-4001 Trying to see extra information in GA dashboard --- src/jalview/analytics/GoogleAnalytics4.java | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 1.7.10.2