analytics.Service#getConfig
.
analytics.Config |
isTrackingPermitted()
⇒ boolean
Returns true if tracking is enabled.
Returns: boolean
True if tracking is permitted.
|
||
setSampleRate(sampleRate)
Sets the user sample rate. This can be used if you need to reduce the
number of users reporting analytics information to Google Analytics.
Most clients will not need to set this. Value is NOT persisted
across sessions.
Arguments:
|
||
setTrackingPermitted(permitted)
As a user of this library you must permit users to opt-out of tracking.
This method provides support for persistently enabling or disabling tracking
for the current user on the current device.
When your code calls For further information on how to support opt-out in your application see https://github.com/GoogleChrome/chrome-platform-analytics/wiki/Respecting-User-Privacy
Arguments:
|