Package org.ametys.plugins.newsletter.ga
Class GAXsltHelper
java.lang.Object
org.ametys.plugins.newsletter.ga.GAXsltHelper
- All Implemented Interfaces:
Serviceable
Helper which provides Google analytics URI building.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
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 Details
-
GAXsltHelper
public GAXsltHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
eventGifUri
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
Get an event GIF URI.- Parameters:
gaWebId
- the GA web ID.eventIdentifier
- the event identifier.- Returns:
- the event GIF URI.
-
encode
Encode a value to use as an identifier component.- Parameters:
value
- the value to encode.- Returns:
- the encoded value.
-