Package org.ametys.plugins.newsletter.ga
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 Summary
Constructors Constructor Description GAXsltHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
encode(String value)
Encode a value to use as an identifier component.static String
eventGifUri(String gaWebId, String eventIdentifier)
Get an event GIF URI.static String
eventGifUri(String gaWebId, String category, String action, String label)
Get an event GIF URI.static String
eventGifUri(String gaWebId, String category, String action, String label, int value)
Get an event GIF URI.static String
eventGifUri(String gaWebId, String category, String action, String label, int value, boolean nonInteraction)
Get an event GIF URI.void
service(ServiceManager manager)
-
-
-
Constructor Detail
-
GAXsltHelper
public GAXsltHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- 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.
-
-