Tracking Code: Web Client

This reference describes all the methods that you use to customize web client information tracking in Google Analytics reporting.

GATC Web Client Methods

Method Details

_getClientInfo()

_getClientInfo()

Gets the flag that indicates whether the browser tracking module is enabled. See _setClientInfo() for more information.

Async Snippet (recommended)

_gaq.push(function() {
  var pageTracker = _gat._getTrackerByName(); // Gets the default tracker.
  var clientInfo = pageTracker._getClientInfo();
});

returns

Boolean True if client info tracking is enabled.


_getDetectFlash()

_getDetectFlash()

Gets the Flash detection flag. See _setDetectFlash() for more information.

Async Snippet (recommended)

_gaq.push(function() {
  var pageTracker = _gat._getTrackerByName(); // Gets the default tracker.
  var detectFlash = pageTracker._getDetectFlash();
});

returns

Boolean True if Flash detection is enabled.


_getDetectTitle()

_getDetectTitle()

Gets the title detection flag.

Async Snippet (recommended)

_gaq.push(function() {
  var pageTracker = _gat._getTrackerByName(); // Gets the default tracker.
  var detectTitle = pageTracker._getDetectTitle();
});

returns

Boolean True if title detection is enabled.


_setClientInfo()

_setClientInfo(bool)

Sets the browser tracking module. By default, Google Analytics tracks browser information from your visitors and provides more data about your visitor's browser settings that you get with a simple HTTP request. If you desire, you can turn this tracking off by setting the parameter to false. If you do this, any browser data will not be tracked and cannot be recovered at a later date, so use this feature carefully.

Async Snippet (recommended)

_gaq.push('_setClientInfo', false);

parameters

Boolean   true or false Defaults to true, and browser tracking is enabled. If set to false, browser tracking is disabled.


_setDetectFlash()

_setDetectFlash(enable)

Sets the Flash detection flag. By default, Google Analytics tracks Flash player information from your visitors and provides detailed data about your visitor's Flash player settings. If you desire, you can turn this tracking off by setting the parameter to false. If you do this, any Flash player data will not be tracked and cannot be recovered at a later date, so use this feature carefully.

Async Snippet (recommended)

_gaq.push('_setDetectFlash', false);

parameters

Boolean   true or false Defaults to true, and Flash detection is enabled. false disables Flash detection.


_setDetectTitle()

_setDetectTitle(enable)

Sets the title detection flag. By default, page title detection for your visitors is on. This information appears in the Contents section under "Content by Title." If you desire, you can turn this tracking off by setting the parameter to false. You could do this if your website has no defined page titles and the Content by Title report has all content grouped into the "(not set)" list. You could also turn this off if all your pages have particularly long titles. If you do this, any page titles that are defined in your website will not be displayed in the "Content by Title" reports. This information cannot be recovered at a later date once it is disabled.

Async Snippet (recommended)

_gaq.push('_setDetectTitle', false);

parameters

Boolean   enable Defaults to true, and title detection is enabled. If set to false, title detection is disabled.