+ " Desktop";
String version = Cache.getProperty("VERSION") + "_"
+ Cache.getDefault("BUILD_DATE", "unknown");
- String path = "/"
- + String.join("/", appName, version, APPLICATION_STARTED);
+ String path;
+ /* we don't want to encode ':' as "%3A" for backward compatibility with the UA setup
+ try
+ {
+ path = "/" + String.join("/", URLEncoder.encode(appName, "UTF-8"),
+ URLEncoder.encode(version, "UTF-8"),
+ URLEncoder.encode(APPLICATION_STARTED, "UTF-8"));
+ } catch (UnsupportedEncodingException e)
+ {
+ */
+ path = ("/" + String.join("/", appName, version, APPLICATION_STARTED))
+ .replace(' ', '+');
+ /*
+ }
+ */
GoogleAnalytics4 ga4 = GoogleAnalytics4.getInstance();
// This will add a page_view similar to the old UA analytics.