Class GoogleAnalytics4DataPublisher
- java.lang.Object
-
- org.wso2.carbon.ganalytics.publisher.ga4.GoogleAnalytics4DataPublisher
-
public class GoogleAnalytics4DataPublisher extends Object
Handles sending the GA4 request. UsesGoogleAnalytics4Data
to construct the payload.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
publishData(GoogleAnalytics4Data googleAnalytics4Data, String userAgent)
Publishes the request - which is generated with the given googleAnalytics4Data, to Google Analytics.
-
-
-
Method Detail
-
publishData
public static boolean publishData(GoogleAnalytics4Data googleAnalytics4Data, String userAgent)
Publishes the request - which is generated with the given googleAnalytics4Data, to Google Analytics.- Parameters:
googleAnalytics4Data
- GoogleAnalytics4Data object containing data to be sent.userAgent
- Value that will be put against the "User-Agent" header.- Returns:
- Whether the request was successful or not.
-
-