Package org.dspace.google.client
Interface GoogleAnalyticsClientRequestBuilder
- All Known Implementing Classes:
GoogleAnalytics4ClientRequestBuilder,UniversalAnalyticsClientRequestBuilder
public interface GoogleAnalyticsClientRequestBuilder
Interface for classes used by
GoogleAnalyticsClient to 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
Modifier and TypeMethodDescriptioncomposeRequestsBody(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.getEndpointUrl(String analyticsKey) Returns the url of the Google Analytics endpoint.
-
Method Details
-
getEndpointUrl
Returns the url of the Google Analytics endpoint.- Parameters:
analyticsKey- the Google Analytics key- Returns:
- the endpoint url
-
composeRequestsBody
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
-