Class GAXsltHelper

java.lang.Object
org.ametys.plugins.newsletter.ga.GAXsltHelper
All Implemented Interfaces:
Serviceable

public class GAXsltHelper extends Object implements Serviceable
Helper which provides Google analytics URI building.
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • eventGifUri

      public static String eventGifUri(String gaWebId, String category, String action, String label)
      Get an event GIF URI.
      Parameters:
      gaWebId - the GA web ID.
      category - the event category.
      action - the event action.
      label - the event label.
      Returns:
      the event GIF URI.
    • eventGifUri

      public static String eventGifUri(String gaWebId, String category, String action, String label, int value)
      Get an event GIF URI.
      Parameters:
      gaWebId - the GA web ID.
      category - the event category.
      action - the event action.
      label - the event label.
      value - the event value.
      Returns:
      the event GIF URI.
    • eventGifUri

      public static String eventGifUri(String gaWebId, String category, String action, String label, int value, boolean nonInteraction)
      Get an event GIF URI.
      Parameters:
      gaWebId - the GA web ID.
      category - the event category.
      action - the event action.
      label - the event label.
      value - the event value.
      nonInteraction - true if the event does not trigger an interaction.
      Returns:
      the event GIF URI.
    • eventGifUri

      public static String eventGifUri(String gaWebId, String eventIdentifier)
      Get an event GIF URI.
      Parameters:
      gaWebId - the GA web ID.
      eventIdentifier - the event identifier.
      Returns:
      the event GIF URI.
    • encode

      public static String encode(String value)
      Encode a value to use as an identifier component.
      Parameters:
      value - the value to encode.
      Returns:
      the encoded value.