public class GoogleAnalytics
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
GoogleAnalytics(java.lang.String trackingId,
org.apache.http.client.HttpClient httpClient)
Adds set of mandatory parameters to the request params:
de - Encoding
v - Protocol version
cid - Client id
tid - Google analytics resource id
|
GoogleAnalytics(java.lang.String trackingId,
java.lang.String proxyUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.Boolean |
send(AnalyticsItem item)
Convert and send
AnalyticsItem to the `Google analytics` instance. |
public GoogleAnalytics(java.lang.String trackingId,
java.lang.String proxyUrl)
public GoogleAnalytics(java.lang.String trackingId,
org.apache.http.client.HttpClient httpClient)
trackingId - ID of the `Google analytics` resourcehttpClient - HttpClient instancepublic java.lang.Boolean send(AnalyticsItem item)
AnalyticsItem to the `Google analytics` instance. Quietly consumes exceptions to not affect reporting flowitem - AnalyticsItemMaybepublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable