public interface Analytics
Analytics instances only provides a best-effort to propagate events to the upstream receiver.
Analytics can be turned off buy setting the system property "chronicle.analytics.disable=true" prior to acquiring any Analytics instances.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Analytics.Builder |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull Analytics.Builder |
builder(@NotNull String measurementId,
@NotNull String apiSecret)
Creates and returns a new Builder that can be used to create an Analytic instance.
|
default void |
sendEvent(@NotNull String name)
Sends an event to Google Analytics as identified by the provided event
name. |
void |
sendEvent(@NotNull String name,
@NotNull Map<String,String> additionalEventParameters)
Sends an event to Google Analytics as identified by the provided event
name including
the provided additionalEventParameters in the event. |
default void sendEvent(@NotNull
@NotNull String name)
name.
Depending on settings and other conditions, the event may or may not be sent upstream. For example, some implementations may send a limited number of upstream events per time unit.
void sendEvent(@NotNull
@NotNull String name,
@NotNull
@NotNull Map<String,String> additionalEventParameters)
name including
the provided additionalEventParameters in the event.
Depending on settings and other conditions, the event may or may not be sent upstream. For example, some implementations may send a limited number of upstream events per time unit.
@NotNull static @NotNull Analytics.Builder builder(@NotNull @NotNull String measurementId, @NotNull @NotNull String apiSecret)
The builder can only create one single Analytic instance.
measurementId - to use for reportingapiSecret - to use for reportingCopyright © 2021. All rights reserved.