Package org.dspace.google.client
Interface GoogleAnalyticsClientRequestBuilder
-
- All Known Implementing Classes:
GoogleAnalytics4ClientRequestBuilder,UniversalAnalyticsClientRequestBuilder
public interface GoogleAnalyticsClientRequestBuilderInterface for classes used byGoogleAnalyticsClientto define the url and the body of the requests to be sent to Google Analytics.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>composeRequestsBody(String analyticsKey, List<GoogleAnalyticsEvent> events)Returns the body of the requests to be sent to Google Analytics as string, based on the given analytics key and events.StringgetEndpointUrl(String analyticsKey)Returns the url of the Google Analytics endpoint.
-
-
-
Method Detail
-
getEndpointUrl
String getEndpointUrl(String analyticsKey)
Returns the url of the Google Analytics endpoint.- Parameters:
analyticsKey- the Google Analytics key- Returns:
- the endpoint url
-
composeRequestsBody
List<String> composeRequestsBody(String analyticsKey, List<GoogleAnalyticsEvent> events)
Returns the body of the requests to be sent to Google Analytics as string, based on the given analytics key and events.- Parameters:
analyticsKey- the Google Analytics keyevents- the events to be sent- Returns:
- the requests body as string
-
-