rv777 0 03/23/2013 04:19 PM У меня сейчас в админке на странице Search Activity только переходы по поисковым запросам с гугла.Можно ли добавить туда яндекс, чтобы видеть переходы с него? Share this post Link to post Share on other sites
siv1987 2,623 03/23/2013 05:18 PM Можно.Открыть admin\sources\base\ipsRegistry.php Найти array( 'name' => 'Google', 'match' => '/http\:\/\/www\.google/', 'parser' => 'parseGoogleUrl' ), Ниже добавить array( 'name' => 'Yandex', 'match' => '/http\:\/\/yandex\./', 'parser' => 'parseYandexUrl' ), Найти protected function parseBingUrl($url) Выше добавить protected function parseYandexUrl($url) { $matches = array(); if(preg_match('/text=([^&]+)/', $url, $matches)) { if(isset($matches[1])) { $keywords = $matches[1]; $keywords = urldecode($keywords); $keywords = str_replace('+', ' ', $keywords); $keywords = str_replace('%20', ' ', $keywords); return $keywords; } } return null; } 2 Share this post Link to post Share on other sites