Property | Type | Description | |
---|---|---|---|
$anonymizeIp | the settings to anonymize the IP address of the hit (http request) sent to Google Analytics. One of the following values are supported: - 0 or GoogleAnalytics::HIT_NONE: The IP will not be anonymized. - 1 or GoogleAnalytics::HIT_ALL: Anonymize the IP addresses for all the hits sent from a page (the lifetime of the tracker object) - 2 or GoogleAnalytics::HIT_EACH: Anonymize the IP address of an individual hit | ||
$domain | the domain name of your website where the tracking code will be displayed | ||
$id | the Google Analytics Tracking ID | ||
$jsAfterSend | any javascript to append after the script that sends data | ||
$jsBeforeSend | any javascript to prepend before the script that sends data | ||
$objectName | the global object name. Defaults to __gaTracker. | ||
$sendConfig | the configuration for sending data. Set it as a string (to be used as is) or an associative array of $key => $value. | ||
$testMode | whether to enable test mode to automatically set cookieDomain. The test mode will auto default to YII_DEBUG definition. | ||
$trackerConfig | the tracker object configuration. Set it as a string (to be used as is) or an associative array of $key => $value. |
Method | Description | |
---|---|---|
init ( ) | Initialize the widget |
public $anonymizeIp |
public $domain |
public $jsAfterSend |
public $jsBeforeSend |
public $sendConfig |
public $testMode |