Modifier and Type | Method and Description |
---|---|
static TrackerConfiguration |
TrackerConfiguration.create(EnableGoogleAnalytics.LogLevel logLevel,
boolean sendHits)
Creates a tracker configuration with default settings based on a log
level and whether to actually enable sending commands to Google
Analytics.
|
static TrackerConfiguration |
TrackerConfiguration.fromAnnotation(EnableGoogleAnalytics annotation,
boolean productionMode)
Creates a tracker configuration based on annotation values.
|
TrackerConfiguration |
TrackerConfiguration.removeCreateField(String name)
Removes a create field value.
|
TrackerConfiguration |
TrackerConfiguration.removeGaDebug(String name)
Removes a debug parameter value.
|
TrackerConfiguration |
TrackerConfiguration.removeInitialValue(String name)
Removes an initial value.
|
TrackerConfiguration |
TrackerConfiguration.setCookieDomain(String cookieDomain)
Sets the cookie domain value to use.
|
TrackerConfiguration |
TrackerConfiguration.setCreateField(String name,
Serializable value)
Sets a custom field value to use when creating the client-side tracker.
|
TrackerConfiguration |
TrackerConfiguration.setGaDebug(String name,
Serializable value)
Adds an entry that should be assigned to the
ga_debug
variable when the client-side tracker is initialized. |
TrackerConfiguration |
TrackerConfiguration.setInitialValue(String name,
Serializable value)
Sets a value that will be included in an initial
set
command. |
TrackerConfiguration |
TrackerConfiguration.setPageViewPrefix(String pageViewPrefix)
Sets a prefix that will be added to the location of all tracked page
views.
|
TrackerConfiguration |
TrackerConfiguration.setScriptUrl(String scriptUrl)
Sets the URL from which to load the Google Analytics script.
|
TrackerConfiguration |
TrackerConfiguration.setTrackingId(String trackingId)
Sets the Google Analytics tracking ID to use.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
EnableGoogleAnalytics.LogLevel.apply(TrackerConfiguration config)
Applies this log level to the given tracker configuration object.
|
void |
TrackerConfigurator.configureTracker(TrackerConfiguration configuration)
Configure a tracker by updating the provided configuration.
|
Copyright © 2023 Sami Ekblad. All rights reserved.