JAL-4001 Javadoc for the method to use
authorBen Soares <b.soares@dundee.ac.uk>
Wed, 7 Jun 2023 21:30:30 +0000 (22:30 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Wed, 7 Jun 2023 21:30:30 +0000 (22:30 +0100)
src/jalview/analytics/GoogleAnalytics4.java

index 5ae9c12..f7dd779 100644 (file)
@@ -91,6 +91,19 @@ public class GoogleAnalytics4
     ENABLED = b;
   }
 
+  /**
+   * The simplest way to send an analytic event.
+   * 
+   * @param eventName
+   *          The event name. To emulate a webpage view use "page_view" and set
+   *          a "page_location" parameter. See
+   *          https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtag
+   * @param paramsStrings
+   *          Optional multiple Strings in key, value pairs (there should be an
+   *          even number of paramsStrings) to be set as parameters of the
+   *          event. To emulate a webpage view use "page_location" as the URL in
+   *          a "page_view" event.
+   */
   public void sendAnalytics(String eventName, String... paramsStrings)
   {
     // clear out old lists