public class ServerAnalytics extends AnalyticsImpl
| Modifier and Type | Method and Description |
|---|---|
CreateOptions |
create(String userAccount)
Create a new tracker using a supplied user id.
|
void |
enablePlugin(AnalyticsPlugin plugin)
Enable an analytics plugin.
|
TimingOptions |
endTimingEvent(String trackerName,
String timingCategory,
String timingVariableName)
Used in conjuction with startTimingEvent to automatically setup and log timing events;
Call endTimingEvent with the same timingCategory and timingVariableName as you used in startTimingEvent()
to fire the event.
|
AnalyticsOptions |
send(String trackerName,
HitType hitType)
send a specific HitType to a specific tracker.
|
GeneralOptions |
setGlobalSettings()
set options for all subsequent calls.
|
void |
startTimingEvent(String timingCategory,
String timingVariableName)
A handy shortcut for setting up an event you want to time.
|
create, endTimingEvent, getTimingKey, send, sendEvent, sendEvent, sendException, sendException, sendPageView, sendPageView, sendSocial, sendSocial, sendTiming, sendTimingpublic CreateOptions create(String userAccount)
Analyticspublic void enablePlugin(AnalyticsPlugin plugin)
Analyticspublic TimingOptions endTimingEvent(String trackerName, String timingCategory, String timingVariableName)
Analyticspublic AnalyticsOptions send(String trackerName, HitType hitType)
AnalyticstrackerName - the name of the trackerhitType - see https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#hit
Example: send(HitType.PAGE_VIEW).go();public GeneralOptions setGlobalSettings()
Analyticspublic void startTimingEvent(String timingCategory, String timingVariableName)
AnalyticsCopyright © 2014. All Rights Reserved.