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:
LogEnabled
,PluginAware
,WebAnalyticsProvider
,Configurable
The matomo analytics provider
-
Field Summary
Fields inherited from class org.ametys.web.analytics.AbstractWebAnalyticsProvider
_id, _label, _pluginName, RANDOM_NUMBER_TOKEN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEventImageUri
(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 paramsMethods inherited from class org.ametys.web.analytics.AbstractWebAnalyticsProvider
_encodeValue, configure, getId, getLabel, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
MatomoAnalyticsProvider
public MatomoAnalyticsProvider()
-
-
Method Details
-
getEventImageUri
public String getEventImageUri(Site site, String category, String action, String label, int value, boolean usePlaceholderTokens) Description copied from interface:WebAnalyticsProvider
Get the event image URI- Parameters:
site
- the sitecategory
- the event categoryaction
- the event actionlabel
- the event labelvalue
- the event valueusePlaceholderTokens
-true
to use placeholder tokens in the URI- Returns:
- the event image URI
-
getEventLinkCampaignParams
Description copied from interface:WebAnalyticsProvider
Get the event link campaign params- Parameters:
site
- the sitecampaign
- the event campaignmedium
- the event mediumsource
- the event source- Returns:
- the event link campaign params
-