public class GoogleAnalytics4DataPublisher extends Object
GoogleAnalytics4Data
to construct the payload.Modifier and Type | Method and Description |
---|---|
static boolean |
publishData(GoogleAnalytics4Data googleAnalytics4Data,
String userAgent)
Publishes the request - which is generated with the given googleAnalytics4Data, to Google Analytics.
|
public static boolean publishData(GoogleAnalytics4Data googleAnalytics4Data, String userAgent)
googleAnalytics4Data
- GoogleAnalytics4Data object containing data to be sent.userAgent
- Value that will be put against the "User-Agent" header.Copyright © 2023 WSO2. All rights reserved.