public function configure($params) { parent::configure($params); $params = array_merge(array('tracker_var' => null), $params); if (!is_null($params['tracker_var'])) { $this->setTrackerVar($params['tracker_var']); } }
/** * Confirm the tracker is configured correctly to support a linker. * * @param sfGoogleAnalyticsTracker $tracker */ function _check_linker_settings(sfGoogleAnalyticsTracker $tracker) { if ($tracker->getDomainName() !== 'none' || $tracker->getLinkerPolicy() !== true) { sfGoogleAnalyticsToolkit::logMessage(basename(__FILE__), 'If tracking multiple domain names on one profile, the app.yml "domain_name" setting should be "off" and the "linker_policy" setting should be "on".', 'notice'); } }