Class WebAnalyticsXsltHelper
java.lang.Object
org.ametys.plugins.newsletter.analytics.WebAnalyticsXsltHelper
- All Implemented Interfaces:
Serviceable
Helper which provides web analytics URI building.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringeventImageUri(String siteName, String category, String action, String label) Get an event image URI.static StringeventImageUri(String siteName, String category, String action, String label, int value) Get an event image URI.static StringeventLinkCampaignParams(String siteName, String campaign, String medium, String source) Get an event link campaign paramsvoidservice(ServiceManager manager)
-
Constructor Details
-
WebAnalyticsXsltHelper
public WebAnalyticsXsltHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
eventImageUri
Get an event image URI.- Parameters:
siteName- the site namecategory- the event category.action- the event action.label- the event label.- Returns:
- the event image URI.
-
eventImageUri
public static String eventImageUri(String siteName, String category, String action, String label, int value) Get an event image URI.- Parameters:
siteName- the site namecategory- the event category.action- the event action.label- the event label.value- the event value.- Returns:
- the event image URI.
-
eventLinkCampaignParams
public static String eventLinkCampaignParams(String siteName, String campaign, String medium, String source) Get an event link campaign params- Parameters:
siteName- the site namecampaign- the event campaignmedium- the event mediumsource- the event source- Returns:
- the event link campaign params
-