Class WebAnalyticsXsltHelper
java.lang.Object
org.ametys.plugins.newsletter.analytics.WebAnalyticsXsltHelper
- All Implemented Interfaces:
Serviceable
Helper which provides web analytics URI building.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
eventImageUri
(String siteName, String category, String action, String label) Get an event image URI.static String
eventImageUri
(String siteName, String category, String action, String label, int value) Get an event image URI.static String
eventLinkCampaignParams
(String siteName, String campaign, String medium, String source) Get an event link campaign paramsvoid
service
(ServiceManager manager)
-
Constructor Details
-
WebAnalyticsXsltHelper
public WebAnalyticsXsltHelper()
-
-
Method Details
-
service
- Specified by:
service
in 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
-