public enum Task extends Enum<Task>
| Enum Constant and Description |
|---|
BUILD_HIT
Builds a measurement protocol request string and stores it in the hitPayload field.
|
CHECK_PROTOCOL
Aborts the request if the page protocol is not http or https.
|
CHECK_STORAGE
Aborts the request if the tracker is configured to use cookies
but the user's browser has cookies disabled.
|
HISTORY_IMPORTER
Imports information from ga.js and urchin.js cookies to preserve
visitor history when a site migrates to Universal Analytics.
|
PREVIEW
Aborts the request if the page is only being rendered to generate
a 'Top Sites' thumbnail for Safari.
|
SAMPLER
Samples out visitors based on the sampleRate setting for this tracker.
|
SEND_HIT
Transmits the measurement protocol request stored in the hitPayload
field to Google Analytics servers.
|
TIMING
Automatically generates a site speed timing beacon based on
the siteSpeedSampleRate setting for this tracker.
|
VALIDATION
Aborts the request if required fields are missing or invalid.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFunctionName() |
static Task |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Task[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Task PREVIEW
public static final Task CHECK_PROTOCOL
public static final Task VALIDATION
public static final Task CHECK_STORAGE
public static final Task HISTORY_IMPORTER
public static final Task SAMPLER
public static final Task BUILD_HIT
public static final Task SEND_HIT
public static final Task TIMING
public static Task[] values()
for (Task c : Task.values()) System.out.println(c);
public static Task valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getFunctionName()
Copyright © 2015. All Rights Reserved.