Class AbstractMatomoEventTrackingProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.webanalytics.matomo.tracking.AbstractMatomoEventTrackingProvider
- All Implemented Interfaces:
MatomoTrackingProvider,LogEnabled,Configurable
- Direct Known Subclasses:
LikeMatomoTrackingProvider,LinkDirectoryMatomoTrackingProvider,PageSubscriptionMatomoTrackingProvider,TagSubscriptionMatomoTrackingProvider
public abstract class AbstractMatomoEventTrackingProvider
extends AbstractLogEnabled
implements MatomoTrackingProvider, Configurable
Abstract class for Matomo tracking provider. It provide only {#MatomoRequests.event}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRecord for a matomo event -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) protected abstract List<AbstractMatomoEventTrackingProvider.MatomoEvent> Get the list of event to send to matomoprotected StringThe events actionprotected StringThe events categoryList<org.matomo.java.tracking.MatomoRequest> getRequests(Site site) Get the list of request to send to MatomoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_eventsCategory
The events category -
_eventsAction
The events category
-
-
Constructor Details
-
AbstractMatomoEventTrackingProvider
public AbstractMatomoEventTrackingProvider()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getRequests
Description copied from interface:MatomoTrackingProviderGet the list of request to send to Matomo- Specified by:
getRequestsin interfaceMatomoTrackingProvider- Parameters:
site- the site- Returns:
- matomo requests
-
getEventsCategory
The events category- Returns:
- the events category
-
getEventsAction
The events action- Returns:
- the events action
-
getEvents
Get the list of event to send to matomo- Parameters:
site- the site- Returns:
- the list of matomo events
-