/** * @param string $userAgent * @return Gass\GoogleAnalyticsServerSide */ public function setUserAgent($userAgent) { $this->userAgent = $this->getAsString($userAgent, 'User Agent'); Http\Http::setUserAgent($this->userAgent); if ($this->botInfo instanceof BotInfo\BotInfo) { $this->botInfo->setUserAgent($this->userAgent); } return $this; }