Class MatomoAnalyticsProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.analytics.AbstractWebAnalyticsProvider
org.ametys.plugins.webanalytics.matomo.MatomoAnalyticsProvider
- All Implemented Interfaces:
DeferredServiceable,LogEnabled,PluginAware,WebAnalyticsProvider,Configurable
public class MatomoAnalyticsProvider
extends AbstractWebAnalyticsProvider
implements DeferredServiceable
The matomo analytics provider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MatomoTrackingProviderExtensionPointThe Matomo tracking extension pointFields inherited from class org.ametys.web.analytics.AbstractWebAnalyticsProvider
_id, _label, _pluginName, _xsltPath, RANDOM_NUMBER_TOKEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeferredService(ServiceManager manager) Pass theServiceManagerused to access other components.getEventImageUri(Site site, String category, String action, String label, int value, boolean usePlaceholderTokens) Get the event image URIgetEventLinkCampaignParams(Site site, String campaign, String medium, String source) Get the event link campaign paramsvoidsendTrackingInformation(Site site) Send tracking information for the given siteMethods inherited from class org.ametys.web.analytics.AbstractWebAnalyticsProvider
_encodeValue, configure, getId, getLabel, getXSLTPath, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_matomoTrackingEP
The Matomo tracking extension point
-
-
Constructor Details
-
MatomoAnalyticsProvider
public MatomoAnalyticsProvider()
-
-
Method Details
-
deferredService
Description copied from interface:DeferredServiceablePass theServiceManagerused to access other components.- Specified by:
deferredServicein interfaceDeferredServiceable- Parameters:
manager- TheServiceManagerwhich thisDeferredServiceableuses. Must not benull.- Throws:
ServiceException- if an error occurs
-
getEventImageUri
public String getEventImageUri(Site site, String category, String action, String label, int value, boolean usePlaceholderTokens) Description copied from interface:WebAnalyticsProviderGet the event image URI- Specified by:
getEventImageUriin interfaceWebAnalyticsProvider- Parameters:
site- the sitecategory- the event categoryaction- the event actionlabel- the event labelvalue- the event valueusePlaceholderTokens-trueto use placeholder tokens in the URI- Returns:
- the event image URI
-
getEventLinkCampaignParams
Description copied from interface:WebAnalyticsProviderGet the event link campaign params- Specified by:
getEventLinkCampaignParamsin interfaceWebAnalyticsProvider- Parameters:
site- the sitecampaign- the event campaignmedium- the event mediumsource- the event source- Returns:
- the event link campaign params
-
sendTrackingInformation
Description copied from interface:WebAnalyticsProviderSend tracking information for the given site- Specified by:
sendTrackingInformationin interfaceWebAnalyticsProvider- Parameters:
site- the site- Throws:
Exception- if an error occurs
-